summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <numaanzaheerahmed@yahoo.com>2019-07-05 02:13:03 +0530
committerunknown <numaanzaheerahmed@yahoo.com>2019-07-05 02:13:03 +0530
commit2685d3324cae4fcf7ded3e145c5448720bec76a6 (patch)
tree1155b82c780e063000d32dd30228b746dcff1da5
parent550f436f8fbea86984a845c821270fba78189143 (diff)
Got replace-all working without breaking search
-rw-r--r--editor/code_editor.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index d5aae7b562..d59f9a2e94 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -341,7 +341,11 @@ bool FindReplaceBar::search_prev() {
bool FindReplaceBar::search_next() {
uint32_t flags = 0;
- String text = get_search_text();
+ String text;
+ if (replace_all_mode)
+ text = get_replace_text();
+ else
+ text = get_search_text();
if (is_whole_words())
flags |= TextEdit::SEARCH_WHOLE_WORDS;