mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 06:33:16 +00:00
Merge pull request #4539 from Paulb23/autocomplete_duplicate_items_issue_1824
Autocomplete no longer shows duplicates, issue #1824
This commit is contained in:
commit
f1b39631f5
@ -3926,6 +3926,10 @@ void TextEdit::_update_completion_candidates() {
|
||||
int ci_match=0;
|
||||
for(int i=0;i<completion_strings.size();i++) {
|
||||
if (completion_strings[i].begins_with(s)) {
|
||||
// don't remove duplicates if no input is provided
|
||||
if (completion_options.find(completion_strings[i]) != -1 && s != "") {
|
||||
continue;
|
||||
}
|
||||
completion_options.push_back(completion_strings[i]);
|
||||
int m=0;
|
||||
int max=MIN(completion_current.length(),completion_strings[i].length());
|
||||
|
Loading…
Reference in New Issue
Block a user