From ed9968e172a318d2646b3220803a9656c0b05fe0 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 11 Oct 2010 20:05:46 +0000 Subject: [PATCH] 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. --- aegisub/src/dialog_search_replace.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/aegisub/src/dialog_search_replace.cpp b/aegisub/src/dialog_search_replace.cpp index 604fe5681..3e932c4c6 100644 --- a/aegisub/src/dialog_search_replace.cpp +++ b/aegisub/src/dialog_search_replace.cpp @@ -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) {