Merge pull request #30326 from Anutrix/replace-all-fix-for-now

Got replace-all working without breaking search
This commit is contained in:
Rémi Verschelde 2019-07-05 09:44:11 +02:00 committed by GitHub
commit c401639820
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;