diff options
| author | Artem Varaksa | 2018-02-08 21:12:08 +0300 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-02-19 22:13:46 +0100 |
| commit | 7af43c4ca3d72aaab9e1372eb4b7784e0e4c5e6c (patch) | |
| tree | 594ce0e454fe5885c653cfb6865f7c2be3152a4e /editor/plugins/script_text_editor.cpp | |
| parent | 5b32be4701f112685b3ee3f9436507a7d38b8537 (diff) | |
| download | godot-7af43c4ca3d72aaab9e1372eb4b7784e0e4c5e6c.tar.gz godot-7af43c4ca3d72aaab9e1372eb4b7784e0e4c5e6c.tar.zst godot-7af43c4ca3d72aaab9e1372eb4b7784e0e4c5e6c.zip | |
Fix #16479 (deselect text when jumping to function)
(cherry picked from commit 3094e897821491a1b2a9e28096d94ff32a3461e8)
Diffstat (limited to '')
| -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 3e00039c8..87e92f080 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); } |
