Fix #16479 (deselect text when jumping to function)

(cherry picked from commit 3094e89782)
This commit is contained in:
Artem Varaksa 2018-02-08 21:12:08 +03:00 committed by Hein-Pieter van Braam
parent 5b32be4701
commit 7af43c4ca3
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}