diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 17e4d041c45..4549556749a 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -3874,6 +3874,9 @@ void TextEdit::_update_completion_candidates() { } } + if (l[cursor.column - 1] == '(' && !pre_keyword) { + cancel = true; + } update();