summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorAndreas Raddau <and.rad@posteo.de>2022-07-12 15:14:43 +0200
committerAndreas Raddau <and.rad@posteo.de>2022-07-12 15:14:43 +0200
commit48b8bfbbcf101f400171da81cd7bb88fa65242e5 (patch)
treea72d0dbd15481be42196fb065b4fd5b65a57b85d /editor
parent42537daeb1819b72a700acfe7ab6486b1a5d45d8 (diff)
Fix negative search result match
Diffstat (limited to '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 50abe8bc36..3a0edf301d 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -332,7 +332,7 @@ void FindReplaceBar::_update_results_count() {
if (results_count_to_current > results_count) {
results_count_to_current = results_count_to_current - results_count;
- } else if (results_count_to_current == 0) {
+ } else if (results_count_to_current <= 0) {
results_count_to_current = results_count;
}