mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Fix autocomplete persisting at the beginning of a line
This commit is contained in:
parent
8c7b98d452
commit
d16df33021
@ -2856,7 +2856,7 @@ void CodeEdit::_filter_code_completion_candidates_impl() {
|
||||
const int caret_line = get_caret_line();
|
||||
const int caret_column = get_caret_column();
|
||||
const String line = get_line(caret_line);
|
||||
ERR_FAIL_INDEX_MSG(caret_column - 1, line.length(), "Caret column exceeds line length.");
|
||||
ERR_FAIL_INDEX_MSG(caret_column, line.length() + 1, "Caret column exceeds line length.");
|
||||
|
||||
if (caret_column > 0 && line[caret_column - 1] == '(' && !code_completion_forced) {
|
||||
cancel_code_completion();
|
||||
|
Loading…
Reference in New Issue
Block a user