fix #295 : Save left/top position in undo when add linebreak at line end.

This commit is contained in:
Roy Qu 2024-03-21 15:01:44 +08:00
parent 2a10d79315
commit 4c12fadae3
1 changed files with 1 additions and 0 deletions

View File

@ -5768,6 +5768,7 @@ void QSynEdit::executeCommand(EditCommand command, QChar ch, void *pData)
break;
case EditCommand::LineBreakAtEnd:
beginEditing();
addLeftTopToUndo();
addCaretToUndo();
addSelectionToUndo();
moveCaretToLineEnd(false, false);