commit 39e8cbf4e59b060e32e993574369f0eb9a88c9ce
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Tue Jul 5 16:22:49 2016 +0200
Record undo when deleting end of paragraph in change tracking mode
Fixes bug #10253.
(cherry picked from commit 86c33c96a0dd026148f79b7da96fee5a0bb705bc)
---
src/Text.cpp | 1 +
status.22x | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/Text.cpp b/src/Text.cpp
index 416a67b..a47d4b1 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -1611,6 +1611,7 @@ bool Text::erase(Cursor & cur)
return dissolveInset(cur);
if
(!par.isMergedOnEndOfParDeletion(cur.buffer()->params().track_changes)) {
+ cur.recordUndo(DELETE_UNDO);
par.setChange(cur.pos(), Change(Change::DELETED));
cur.forwardPos();
needsUpdate = true;
diff --git a/status.22x b/status.22x
index c088d1f..dd7c297 100644
--- a/status.22x
+++ b/status.22x
@@ -141,6 +141,9 @@ What's new
- Fix cursor position after Redo of a document settings change (bug
10097).
+- Handle undo after deleting end of paragraph in change tracking mode
+ (bug 10253).
+
- Disable Edit > Dissolve Inset in tabulars (bug 9954).
- Shortcut preferences: ask the user for removing bindings when using the