diff --git a/src/NotepadNext/dialogs/FindReplaceDialog.cpp b/src/NotepadNext/dialogs/FindReplaceDialog.cpp index d37264e00..6f5ea611f 100644 --- a/src/NotepadNext/dialogs/FindReplaceDialog.cpp +++ b/src/NotepadNext/dialogs/FindReplaceDialog.cpp @@ -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()) {