diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-04-14 08:24:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-14 08:24:38 +0200 |
commit | fe73fed4d764b15be8096e4c0878a475d39f01c2 (patch) | |
tree | 7b52806cc6bdf5fa5e3f2493f20b65738a3c7bd4 /editor/code_editor.cpp | |
parent | fbcba00ca1dfad7c2829f7dcfe1c5c9af5a87f86 (diff) | |
parent | a4d56648580fd06cf54c5bc6d8e4a6a635aeaf03 (diff) |
Merge pull request #47625 from SushiJackal/47450_fix
Fix: Selection Only in Find/Replace now preserves selection
Diffstat (limited to 'editor/code_editor.cpp')
-rw-r--r-- | editor/code_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index ac8bef817b..6ed2cb9d9c 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -142,7 +142,7 @@ bool FindReplaceBar::_search(uint32_t p_flags, int p_from_line, int p_from_col) bool found = text_editor->search(text, p_flags, p_from_line, p_from_col, line, col); if (found) { - if (!preserve_cursor) { + if (!preserve_cursor && !is_selection_only()) { text_editor->unfold_line(line); text_editor->cursor_set_line(line, false); text_editor->cursor_set_column(col + text.length(), false); |