Skip to content

Commit

Permalink
Merge pull request #3 from jakobhellermann/fix-find-previous-crash
Browse files Browse the repository at this point in the history
Fix crash when trying to find previous match
  • Loading branch information
psyGamer authored Jul 25, 2024
2 parents de1810b + 895be48 commit bf4cc6e
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 bf4cc6e

Please sign in to comment.