Browse Source

Merge pull request #4573 from Paulb23/code_completion_after_bracket_issue_3977

Fixed code completion after opening bracket, issue 3977
Rémi Verschelde 9 years ago
parent
commit
a53841a43a
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();
 	update();