forked from mia/Aegisub
Don't pointlessly batch single selection changes when find/replacing. Fixes bug where find would select the wrong part of the line.
Originally committed to SVN as r4798.
This commit is contained in:
parent
b4739d2aee
commit
ed9968e172
1 changed files with 0 additions and 3 deletions
|
@ -417,8 +417,6 @@ void SearchReplaceEngine::ReplaceNext(bool DoReplace) {
|
|||
|
||||
// Found
|
||||
if (found) {
|
||||
grid->BeginBatch();
|
||||
|
||||
// If replacing
|
||||
if (DoReplace) {
|
||||
// Replace with regular expressions
|
||||
|
@ -452,7 +450,6 @@ void SearchReplaceEngine::ReplaceNext(bool DoReplace) {
|
|||
grid->SetActiveLine(grid->GetDialogue(curLine));
|
||||
grid->editBox->TextEdit->SetSelectionU(pos,pos+replaceLen);
|
||||
}
|
||||
grid->EndBatch();
|
||||
|
||||
// Update video
|
||||
if (updateVideo) {
|
||||
|
|
Loading…
Reference in a new issue