mirror of https://github.com/odrling/Aegisub
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:
parent
49cdd10ffd
commit
420f28adf8
|
@ -351,7 +351,7 @@ void SearchReplaceEngine::ReplaceNext(bool DoReplace) {
|
||||||
int firstLine = 0;
|
int firstLine = 0;
|
||||||
if (sels.Count() > 0) firstLine = sels[0];
|
if (sels.Count() > 0) firstLine = sels[0];
|
||||||
// if selection has changed reset values
|
// if selection has changed reset values
|
||||||
if (firstLine < curLine) {
|
if (firstLine != curLine) {
|
||||||
curLine = firstLine;
|
curLine = firstLine;
|
||||||
Modified = false;
|
Modified = false;
|
||||||
LastWasFind = true;
|
LastWasFind = true;
|
||||||
|
|
Loading…
Reference in New Issue