You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix: Selection Only in Find/Replace now preserves selection
(cherry picked from commit a4d5664858)
This commit is contained in:
@@ -147,7 +147,7 @@ bool FindReplaceBar::_search(uint32_t p_flags, int p_from_line, int p_from_col)
|
||||
bool found = text_edit->search(text, p_flags, p_from_line, p_from_col, line, col);
|
||||
|
||||
if (found) {
|
||||
if (!preserve_cursor) {
|
||||
if (!preserve_cursor && !is_selection_only()) {
|
||||
text_edit->unfold_line(line);
|
||||
text_edit->cursor_set_line(line, false);
|
||||
text_edit->cursor_set_column(col + text.length(), false);
|
||||
|
||||
Reference in New Issue
Block a user