Skip to content

Commit

Permalink
fix: find previous exception due to wrong iteration direction
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobhellermann committed Jul 24, 2024
1 parent e80543b commit 895be48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Studio/CelesteStudio/Dialog/FindDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private void SelectPrev() {
return;

// Check against end of selection
for (int i = matches.Count - 1; i >= 0; i++) {
for (int i = matches.Count - 1; i >= 0; i--) {
var match = matches[i];
var end = new CaretPosition(match.Row, match.Col + textBox.Text.Length);

Expand Down

0 comments on commit 895be48

Please sign in to comment.