浏览代码

Fix #16479 (deselect text when jumping to function)

Artem Varaksa 7 年之前
父节点
当前提交
3094e89782
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/plugins/script_text_editor.cpp

+ 1 - 0
editor/plugins/script_text_editor.cpp

@@ -519,6 +519,7 @@ void ScriptTextEditor::tag_saved_version() {
 
 void ScriptTextEditor::goto_line(int p_line, bool p_with_error) {
 	TextEdit *tx = code_editor->get_text_edit();
+	tx->deselect();
 	tx->unfold_line(p_line);
 	tx->call_deferred("cursor_set_line", p_line);
 }