From 48b8bfbbcf101f400171da81cd7bb88fa65242e5 Mon Sep 17 00:00:00 2001 From: Andreas Raddau Date: Tue, 12 Jul 2022 15:14:43 +0200 Subject: Fix negative search result match --- editor/code_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3