Select found text in Script Editor
This commit is contained in:
parent
e088358ca1
commit
b1af799b16
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue