diff options
author | fvogel <fvogelnew1@free.fr> | 2024-04-21 11:03:48 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2024-04-21 11:03:48 (GMT) |
commit | 6ea395a7edbf522e3049fb8a33c9a44c8744e423 (patch) | |
tree | 5dd9a72fdaa81b200fac2bd7c54d023e4a2253d0 /generic/tkText.c | |
parent | 27db51fecd833ecd4a918acb93e6055ebf70b206 (diff) | |
parent | 5f0874e27eff3a438da588170e32dfaf13831c83 (diff) | |
download | tk-6ea395a7edbf522e3049fb8a33c9a44c8744e423.zip tk-6ea395a7edbf522e3049fb8a33c9a44c8744e423.tar.gz tk-6ea395a7edbf522e3049fb8a33c9a44c8744e423.tar.bz2 |
Fix [ab839efc5f]: text edit undo: clearing text instead of restoring.
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 e56e83c..013874b 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -5059,6 +5059,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 @@ -5077,6 +5081,10 @@ TextEditUndo( } textPtr->sharedTextPtr->undo = 1; + if (textPtr->sharedTextPtr->autoSeparators) { + TkUndoInsertUndoSeparator(textPtr->sharedTextPtr->undoStack); + } + return status; } |