From 420f28adf84d288d97bb09b13d63a5ca74a08e2c Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 15 Oct 2010 16:58:50 +0000 Subject: [PATCH] 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. --- aegisub/src/dialog_search_replace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/dialog_search_replace.cpp b/aegisub/src/dialog_search_replace.cpp index 3e932c4c6..86306c3fa 100644 --- a/aegisub/src/dialog_search_replace.cpp +++ b/aegisub/src/dialog_search_replace.cpp @@ -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;