]> git.lyx.org Git - lyx.git/commit
Fix faulty undo recording
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 16 Jul 2024 13:43:11 +0000 (15:43 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jul 2024 21:40:39 +0000 (23:40 +0200)
commite57ccede186fa3705578a4908cbf8f96f5b9f5b5
tree3c16cb9c5aac410168927c98b0b28390c939092d
parentde2970a7d0942d73dc7b5b5c2fa9e7aad0703565
Fix faulty undo recording

The recordUndo() call is very wrong, since we may be inserting over a
selection covering several paragraphs (undo itself works at paragraph
granularity).

recordUndoSelection() is the right operation in this case. It is
equivalent to recordUndo() when there is no selection.

(cherry picked from commit 82f387dabc2b18de6a9917192f4304e92bff8bc1)
src/Text.cpp
status.24x