1
0
mirror of https://github.com/odrling/Aegisub synced 2025-04-11 22:56:02 +02:00

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

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

@ -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;