Merge pull request #39478 from mrushyendra/find_whole_word

Fix whole word search slowdown in editor
This commit is contained in:
Rémi Verschelde 2020-06-12 12:58:31 +02:00 committed by GitHub
commit 84abf5a979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ void FindReplaceBar::_update_results_count() {
} }
if (is_whole_words()) { if (is_whole_words()) {
from_pos++; // Making sure we won't hit the same match next time, if we get out via a continue. from_pos = pos + 1; // Making sure we won't hit the same match next time, if we get out via a continue.
if (pos > 0 && !is_symbol(full_text[pos - 1])) { if (pos > 0 && !is_symbol(full_text[pos - 1])) {
continue; continue;
} }