Skip to content

Commit 08c8ea4

Browse files
committed
Fix find previous
1 parent 044ba62 commit 08c8ea4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/RadNotepadView.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace
4545
sel = (int) pButton->AddSortedItem(search);
4646
}
4747
}
48-
// TODO Trim history to 100 items
48+
// --- TODO Trim history to 100 items
4949
}
5050
};
5151

@@ -591,7 +591,9 @@ extern CScintillaEditState g_scintillaEditState;
591591

592592
void CRadNotepadView::OnEditFindPrevious()
593593
{
594-
OnFindNext(g_scintillaEditState.strFind, !g_scintillaEditState.bNext, g_scintillaEditState.bCase, g_scintillaEditState.bWord, g_scintillaEditState.bRegularExpression);
594+
BOOL bNext = g_scintillaEditState.bNext;
595+
OnFindNext(g_scintillaEditState.strFind, !bNext, g_scintillaEditState.bCase, g_scintillaEditState.bWord, g_scintillaEditState.bRegularExpression);
596+
g_scintillaEditState.bNext = bNext;
595597
}
596598

597599
void CRadNotepadView::OnEditFindNextCurrentWord()

0 commit comments

Comments
 (0)