summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-06-16 16:52:27 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-06-16 16:52:27 +0200
commitc65aba7aff1d5251001a48cfbe797ffe91a77d6d (patch)
tree905e8272c8076ac66cc9b3d694312e65bee57e62 /core
parentce60395b4a462c6cc5e8b2c115fc28d2d57909ae (diff)
parente9a2060b279788ab51312c5dea0bdf20ff70fda2 (diff)
downloadredot-engine-c65aba7aff1d5251001a48cfbe797ffe91a77d6d.tar.gz
Merge pull request #78321 from ajreckof/fix-wrong-alphabetical-order-in-autocompletion-sorting
Fix wrong order in autocompletion sorting with empty string to complete.
Diffstat (limited to 'core')
-rw-r--r--core/object/script_language.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/object/script_language.h b/core/object/script_language.h
index 829f01fbcc..c22890e30a 100644
--- a/core/object/script_language.h
+++ b/core/object/script_language.h
@@ -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() {}