diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-07-04 07:24:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-04 07:24:30 +0200 |
commit | 576a28470fce95cf0d35d5e2e1e408b4afe80e4f (patch) | |
tree | 002498624c1e80f7dbbc481d5e4adaf9190d4540 | |
parent | 1e095cf39760d0469e7a5a0749b1541a0790cb77 (diff) | |
parent | 55b8a353f57bf870f17365389957433d4072651d (diff) |
Merge pull request #5539 from vnen/fix-completion-crash
Fix completion string check when column = 0
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
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; } |