diff options
Diffstat (limited to 'generic/tkText.c')
-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 b3ce207..23e0647 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -5115,6 +5115,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 @@ -5133,6 +5137,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. |