Browse Source

Fixed code completion after opening bracket, issue 3977

Paulb23 9 years ago
parent
commit
0a2b341d0a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      scene/gui/text_edit.cpp

+ 3 - 0
scene/gui/text_edit.cpp

@@ -3911,6 +3911,9 @@ void TextEdit::_update_completion_candidates() {
 		}
 	}
 
+	if (l[cursor.column - 1] == '(' && !pre_keyword) {
+		cancel = true;
+	}
 
 	update();