diff options
author | Poommetee Ketson <poommetee@protonmail.com> | 2018-02-12 23:09:19 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-12 23:09:19 +0700 |
commit | 45ab9cdfb55eed4eef59feee225248ccc20a6235 (patch) | |
tree | 08454f6abe1ae575f1cc1a5aef66ba749d970573 /editor | |
parent | f961ba004b1d67cbc0835202930fa8d16b8ff07a (diff) | |
parent | 3094e897821491a1b2a9e28096d94ff32a3461e8 (diff) |
Merge pull request #16499 from sudoio/master
Deselect text when jumping to function
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index a3728a1d46..ecd98d5d3e 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); } |