You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Fix crash during completion lookback
This commit is contained in:
@@ -2744,7 +2744,7 @@ void CodeEdit::_filter_code_completion_candidates_impl() {
|
||||
/* If we have a space, previous word might be a keyword. eg "func |". */
|
||||
} else if (cofs > 0 && line[cofs - 1] == ' ') {
|
||||
int ofs = cofs - 1;
|
||||
while (ofs >= 0 && line[ofs] == ' ') {
|
||||
while (ofs > 0 && line[ofs] == ' ') {
|
||||
ofs--;
|
||||
}
|
||||
prev_is_word = _is_char(line[ofs]);
|
||||
|
||||
Reference in New Issue
Block a user