summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-06-12 12:58:31 +0200
committerGitHub <noreply@github.com>2020-06-12 12:58:31 +0200
commit84abf5a979648081a9076ec6b342f5f9d33093d4 (patch)
tree807f30e0a1697080c7bd65c66763aff6e2f73cc6
parent42bc9ba92f6cd5018dfd90d76438b82b1606bd89 (diff)
parent2433287871ec5ccdf1f85e3e9c057a1a589d3848 (diff)
Merge pull request #39478 from mrushyendra/find_whole_word
Fix whole word search slowdown in editor
-rw-r--r--editor/code_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index 9888013ce6..1b2b0a26e6 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -308,7 +308,7 @@ void FindReplaceBar::_update_results_count() {
}
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])) {
continue;
}