Skip to content

Commit

Permalink
Add backward direction to Find dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
db941144 committed Aug 21, 2024
1 parent d1f619c commit 5499897
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/NotepadNext/dialogs/FindReplaceDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,13 @@ void FindReplaceDialog::find()

prepareToPerformSearch();

Sci_CharacterRange range = finder->findNext();
Sci_CharacterRange range;
if(!ui->checkBoxBackwardsDirection->isChecked()) {
range = finder->findNext();
}
else{
range = finder->findPrev();
}

if (ScintillaNext::isRangeValid(range)) {
if (finder->didLatestSearchWrapAround()) {
Expand Down

0 comments on commit 5499897

Please sign in to comment.