diff options
author | fvogel <fvogelnew1@free.fr> | 2024-04-21 11:11:49 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2024-04-21 11:11:49 (GMT) |
commit | d34ec53094330262b19a1cc0372e0753324e1ab7 (patch) | |
tree | 48655f74fb6f65112728d095b2bc7fcd74f60dca /generic | |
parent | 4971e0bee8445f590f22bf6d9b97b6dcade7258d (diff) | |
parent | 6ea395a7edbf522e3049fb8a33c9a44c8744e423 (diff) | |
download | tk-d34ec53094330262b19a1cc0372e0753324e1ab7.zip tk-d34ec53094330262b19a1cc0372e0753324e1ab7.tar.gz tk-d34ec53094330262b19a1cc0372e0753324e1ab7.tar.bz2 |
Fix [ab839efc5f]: text edit undo: clearing text instead of restoring.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkText.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/generic/tkText.c b/generic/tkText.c index f92a803..19b4d99 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -5087,6 +5087,10 @@ TextEditUndo( return TCL_OK; } + if (textPtr->sharedTextPtr->autoSeparators) { + TkUndoInsertUndoSeparator(textPtr->sharedTextPtr->undoStack); + } + /* * Turn off the undo feature while we revert a compound action, setting * the dirty handling mode to undo for the duration (unless it is @@ -5105,6 +5109,10 @@ TextEditUndo( } textPtr->sharedTextPtr->undo = 1; + if (textPtr->sharedTextPtr->autoSeparators) { + TkUndoInsertUndoSeparator(textPtr->sharedTextPtr->undoStack); + } + /* * Convert undo/redo temporary marks set by TkUndoRevert() into * indices left in the interp result. |