fix #295 : Save left/top position in undo when add linebreak at line end.
This commit is contained in:
parent
2a10d79315
commit
4c12fadae3
|
@ -5768,6 +5768,7 @@ void QSynEdit::executeCommand(EditCommand command, QChar ch, void *pData)
|
|||
break;
|
||||
case EditCommand::LineBreakAtEnd:
|
||||
beginEditing();
|
||||
addLeftTopToUndo();
|
||||
addCaretToUndo();
|
||||
addSelectionToUndo();
|
||||
moveCaretToLineEnd(false, false);
|
||||
|
|
Loading…
Reference in New Issue