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:
Thomas Goyne 2010-10-11 20:05:46 +00:00
parent b4739d2aee
commit ed9968e172
1 changed files with 0 additions and 3 deletions

View File

@ -417,8 +417,6 @@ void SearchReplaceEngine::ReplaceNext(bool DoReplace) {
// Found // Found
if (found) { if (found) {
grid->BeginBatch();
// If replacing // If replacing
if (DoReplace) { if (DoReplace) {
// Replace with regular expressions // Replace with regular expressions
@ -452,7 +450,6 @@ void SearchReplaceEngine::ReplaceNext(bool DoReplace) {
grid->SetActiveLine(grid->GetDialogue(curLine)); grid->SetActiveLine(grid->GetDialogue(curLine));
grid->editBox->TextEdit->SetSelectionU(pos,pos+replaceLen); grid->editBox->TextEdit->SetSelectionU(pos,pos+replaceLen);
} }
grid->EndBatch();
// Update video // Update video
if (updateVideo) { if (updateVideo) {