aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulb232016-05-07 12:01:56 +0100
committerRémi Verschelde2016-05-12 08:55:43 +0200
commit7ab1c1ea3b111cf9b6fd9233abd334f9f36d1ce4 (patch)
treee30cdf8a553660daab52fc18de124feae7595572
parentf8debd8152ae822956615541cf43b620480eee6d (diff)
downloadgodot-7ab1c1ea3b111cf9b6fd9233abd334f9f36d1ce4.tar.gz
godot-7ab1c1ea3b111cf9b6fd9233abd334f9f36d1ce4.tar.zst
godot-7ab1c1ea3b111cf9b6fd9233abd334f9f36d1ce4.zip
Fixed code completion after opening bracket, issue 3977
(cherry picked from commit 0a2b341d0a7027b9d8c1e3bf1448f83c568a9304)
-rw-r--r--scene/gui/text_edit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 17e4d041c..454955674 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -3874,6 +3874,9 @@ void TextEdit::_update_completion_candidates() {
}
}
+ if (l[cursor.column - 1] == '(' && !pre_keyword) {
+ cancel = true;
+ }
update();