mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-26 05:27:01 +00:00
Demo: Console: Fixed a completion bug when multiple candidates are equals and match until the end.
This commit is contained in:
parent
68df09cf47
commit
714beb217c
@ -2316,7 +2316,7 @@ struct ExampleAppConsole
|
|||||||
for (int i = 0; i < candidates.Size && all_candidates_matches; i++)
|
for (int i = 0; i < candidates.Size && all_candidates_matches; i++)
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
c = toupper(candidates[i][match_len]);
|
c = toupper(candidates[i][match_len]);
|
||||||
else if (c != toupper(candidates[i][match_len]))
|
else if (c == 0 || c != toupper(candidates[i][match_len]))
|
||||||
all_candidates_matches = false;
|
all_candidates_matches = false;
|
||||||
if (!all_candidates_matches)
|
if (!all_candidates_matches)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user