minor change

This commit is contained in:
Roy Qu 2022-03-15 00:24:10 +08:00
parent 65beccdbd1
commit 0d4b7d0d4d
1 changed files with 1 additions and 3 deletions

View File

@ -2834,9 +2834,6 @@ void SynEdit::doCutToClipboard()
activeSelectionMode()); activeSelectionMode());
doSelecteLine(); doSelecteLine();
} }
auto action = finally([this] {
mUndoList->EndBlock();
});
internalDoCopyToClipboard(selText()); internalDoCopyToClipboard(selText());
doSetSelText(""); doSetSelText("");
mUndoList->AddChange( mUndoList->AddChange(
@ -2845,6 +2842,7 @@ void SynEdit::doCutToClipboard()
BufferCoord{0,0}, BufferCoord{0,0},
"", "",
SynSelectionMode::smNormal); SynSelectionMode::smNormal);
mUndoList->EndBlock();
} }
void SynEdit::doCopyToClipboard() void SynEdit::doCopyToClipboard()