Fix code formatting
This commit is contained in:
parent
c84549a8ad
commit
9e6fc87773
|
@ -93,9 +93,11 @@ static int SymAutoComplete(const char* Search, char** Buffer, int MaxSymbols)
|
|||
}
|
||||
}
|
||||
|
||||
if (count < MaxSymbols) {
|
||||
if(count < MaxSymbols)
|
||||
{
|
||||
auto labels = LabelFindPrefix(prefix, MaxSymbols - count, caseSensitiveAutoComplete);
|
||||
for (auto& label: labels) {
|
||||
for(auto & label : labels)
|
||||
{
|
||||
Buffer[count] = (char*)BridgeAlloc(label.size() + 1);
|
||||
memcpy(Buffer[count], label.c_str(), label.size() + 1);
|
||||
count++;
|
||||
|
|
|
@ -175,7 +175,8 @@ std::vector<std::string> LabelFindPrefix(const std::string& prefix, int maxCount
|
|||
{
|
||||
return true;
|
||||
}
|
||||
if (cmp(prefix.c_str(), value.text.c_str(), prefixSize) != 0) {
|
||||
if(cmp(prefix.c_str(), value.text.c_str(), prefixSize) != 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
outputs.push_back(value.text);
|
||||
|
|
Loading…
Reference in New Issue