summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-02 16:05:57 +0200
committerGitHub <noreply@github.com>2019-08-02 16:05:57 +0200
commitb14f12b571b3ae80876a82f81a774fb8e1a1f5bb (patch)
tree3b955b42c5af233073c323b79f4dec1144307a69 /editor
parente088358ca142584fa7ea49e6506beccf518f8352 (diff)
parentb1af799b16b116099e0b627adf539ffd329fa549 (diff)
Merge pull request #31032 from KoBeWi/searchlect
Select found text in Script Editor
Diffstat (limited to 'editor')
-rw-r--r--editor/code_editor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index e45ff3fee2..89a88dc6e7 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -152,6 +152,7 @@ bool FindReplaceBar::_search(uint32_t p_flags, int p_from_line, int p_from_col)
text_edit->cursor_set_line(line, false);
text_edit->cursor_set_column(col + text.length(), false);
text_edit->center_viewport_to_cursor();
+ text_edit->select(line, col, line, col + text.length());
}
text_edit->set_search_text(text);