If the user changes the active row in the middle of searching, search from the new active row even if it's after the last found row. Closes #1004

Originally committed to SVN as r4810.
This commit is contained in:
Thomas Goyne 2010-10-15 16:58:50 +00:00
parent 49cdd10ffd
commit 420f28adf8
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ void SearchReplaceEngine::ReplaceNext(bool DoReplace) {
int firstLine = 0;
if (sels.Count() > 0) firstLine = sels[0];
// if selection has changed reset values
if (firstLine < curLine) {
if (firstLine != curLine) {
curLine = firstLine;
Modified = false;
LastWasFind = true;