From b1af799b16b116099e0b627adf539ffd329fa549 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Fri, 2 Aug 2019 15:00:26 +0200 Subject: [PATCH] Select found text in Script Editor --- editor/code_editor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index e45ff3fee26..89a88dc6e75 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);