Skip to content

Commit

Permalink
Merge pull request #16499 from sudoio/master
Browse files Browse the repository at this point in the history
Deselect text when jumping to function
  • Loading branch information
Poommetee Ketson authored Feb 12, 2018
2 parents f961ba0 + 3094e89 commit 45ab9cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/plugins/script_text_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 45ab9cd

Please sign in to comment.