Merge pull request #78321 from ajreckof/fix-wrong-alphabetical-order-in-autocompletion-sorting

Fix wrong order in autocompletion sorting with empty string to complete.
This commit is contained in:
Rémi Verschelde
2023-06-16 16:52:27 +02:00
2 changed files with 2 additions and 4 deletions

View File

@ -338,7 +338,7 @@ public:
Ref<Resource> icon;
Variant default_value;
Vector<Pair<int, int>> matches;
Vector<Pair<int, int>> last_matches;
Vector<Pair<int, int>> last_matches = { { -1, -1 } }; // This value correspond to an impossible match
int location = LOCATION_OTHER;
CodeCompletionOption() {}