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
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) {