Fix completion string check when column = 0

This commit is contained in:
George Marques 2016-07-03 18:49:58 -03:00
parent ac157f8c05
commit 55b8a353f5
No known key found for this signature in database
GPG Key ID: 046BD46A3201E43D
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;
}