diff options
author | Andreas Raddau <and.rad@posteo.de> | 2022-07-12 15:14:43 +0200 |
---|---|---|
committer | Andreas Raddau <and.rad@posteo.de> | 2022-07-12 15:14:43 +0200 |
commit | 48b8bfbbcf101f400171da81cd7bb88fa65242e5 (patch) | |
tree | a72d0dbd15481be42196fb065b4fd5b65a57b85d /editor | |
parent | 42537daeb1819b72a700acfe7ab6486b1a5d45d8 (diff) |
Fix negative search result match
Diffstat (limited to 'editor')
-rw-r--r-- | editor/code_editor.cpp | 2 |
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; } |