]> 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>
Tue, 16 Jul 2024 13:43:11 +0000 (15:43 +0200)
commit82f387dabc2b18de6a9917192f4304e92bff8bc1
treee1c7dd88e258a9055dd8eb2a6ec0a2c5259e4aff
parentcca68d0614269edfc256db82b3849afde4640dd7
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.
src/Text.cpp