summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2016-05-07 12:01:56 +0100
committerPaulb23 <p_batty@hotmail.co.uk>2016-05-07 12:01:56 +0100
commit0a2b341d0a7027b9d8c1e3bf1448f83c568a9304 (patch)
tree279f045e9f444b4c0c66a43b0c71a175554fc37c /scene/gui
parentbaaa74f2153403044ab7570b920bc01317f8a047 (diff)
Fixed code completion after opening bracket, issue 3977
Diffstat (limited to 'scene/gui')
-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 05f7725a92..ef29d25aa6 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -3911,6 +3911,9 @@ void TextEdit::_update_completion_candidates() {
}
}
+ if (l[cursor.column - 1] == '(' && !pre_keyword) {
+ cancel = true;
+ }
update();