From 3094e897821491a1b2a9e28096d94ff32a3461e8 Mon Sep 17 00:00:00 2001 From: Artem Varaksa Date: Thu, 8 Feb 2018 21:12:08 +0300 Subject: [PATCH] Fix #16479 (deselect text when jumping to function) --- editor/plugins/script_text_editor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index a3728a1d466..ecd98d5d3e5 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/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); }