浏览代码

Fixed code completion after opening bracket, issue 3977

Paulb23 9 年之前
父节点
当前提交
0a2b341d0a
共有 1 个文件被更改,包括 3 次插入0 次删除
  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();