Merge pull request #5539 from vnen/fix-completion-crash

Fix completion string check when column = 0
This commit is contained in:
Rémi Verschelde 2016-07-04 07:24:30 +02:00 committed by GitHub
commit 576a28470f
1 changed files with 1 additions and 1 deletions

View File

@ -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; cancel = true;
} }