work save

This commit is contained in:
Roy Qu 2022-09-27 14:43:33 +08:00
parent d946b9373e
commit f187e9ead2
1 changed files with 2 additions and 0 deletions

View File

@ -3078,6 +3078,8 @@ void SynEdit::doPasteFromClipboard()
QString text = clipboard->text(); QString text = clipboard->text();
if (text.isEmpty()) if (text.isEmpty())
return; return;
//correctly handle spaces copied from wechat
// text.replace(QChar(0x00A0),QChar(0x0020));
mUndoList->beginBlock(); mUndoList->beginBlock();
// if (selAvail()) { // if (selAvail()) {
// mUndoList->AddChange( // mUndoList->AddChange(