mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Record undo when deleting end of paragraph in change tracking mode
Fixes bug #10253.
This commit is contained in:
parent
a51847f33f
commit
86c33c96a0
@ -1585,6 +1585,7 @@ bool Text::erase(Cursor & cur)
|
|||||||
return dissolveInset(cur);
|
return dissolveInset(cur);
|
||||||
|
|
||||||
if (!par.isMergedOnEndOfParDeletion(cur.buffer()->params().track_changes)) {
|
if (!par.isMergedOnEndOfParDeletion(cur.buffer()->params().track_changes)) {
|
||||||
|
cur.recordUndo(DELETE_UNDO);
|
||||||
par.setChange(cur.pos(), Change(Change::DELETED));
|
par.setChange(cur.pos(), Change(Change::DELETED));
|
||||||
cur.forwardPos();
|
cur.forwardPos();
|
||||||
needsUpdate = true;
|
needsUpdate = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user