summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2016-07-03 18:49:58 -0300
committerGeorge Marques <george@gmarqu.es>2016-07-03 18:49:58 -0300
commit55b8a353f57bf870f17365389957433d4072651d (patch)
tree469a390e6ad4ed3a74937f7485e38655779670ed /scene/gui
parentac157f8c05bf0967b65ba289b6118de807612cdf (diff)
Fix completion string check when column = 0
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/text_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 40fc9a70cc..78fd699dd0 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -4122,7 +4122,7 @@ void TextEdit::_update_completion_candidates() {
}
}
- if (l[cursor.column - 1] == '(' && !pre_keyword && !completion_strings[0].begins_with("\"")) {
+ if (cursor.column > 0 && l[cursor.column - 1] == '(' && !pre_keyword && !completion_strings[0].begins_with("\"")) {
cancel = true;
}