1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Select found text in Script Editor

This commit is contained in:
Tomasz Chabora
2019-08-02 15:00:26 +02:00
parent e088358ca1
commit b1af799b16

View File

@@ -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_line(line, false);
text_edit->cursor_set_column(col + text.length(), false); text_edit->cursor_set_column(col + text.length(), false);
text_edit->center_viewport_to_cursor(); text_edit->center_viewport_to_cursor();
text_edit->select(line, col, line, col + text.length());
} }
text_edit->set_search_text(text); text_edit->set_search_text(text);