From 7ab1c1ea3b111cf9b6fd9233abd334f9f36d1ce4 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Sat, 7 May 2016 12:01:56 +0100 Subject: [PATCH] Fixed code completion after opening bracket, issue 3977 (cherry picked from commit 0a2b341d0a7027b9d8c1e3bf1448f83c568a9304) --- scene/gui/text_edit.cpp | 3 +++ 1 file changed, 3 insertions(+) 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();