From: Jean-Marc Lasgouttes Date: Tue, 5 Jul 2016 14:22:49 +0000 (+0200) Subject: Record undo when deleting end of paragraph in change tracking mode X-Git-Tag: 2.2.1~61 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=39e8cbf4e59b060e32e993574369f0eb9a88c9ce;p=features.git Record undo when deleting end of paragraph in change tracking mode Fixes bug #10253. (cherry picked from commit 86c33c96a0dd026148f79b7da96fee5a0bb705bc) --- diff --git a/src/Text.cpp b/src/Text.cpp index 416a67bf0d..a47d4b1c52 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 c088d1f8b7..dd7c29765d 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