]> git.lyx.org Git - lyx.git/commit
Implement undo coalescing
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 13 Jul 2022 23:02:28 +0000 (01:02 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 5 Apr 2024 10:50:20 +0000 (12:50 +0200)
commitf5bbadbad92d55d480ea8b20c1e29f9ffe4ca224
tree4da65140ddfc11c73ff7d9bd33e618a24fc53930
parent4c1db7cad866d99af2f2474d8467cc8581eb0eef
Implement undo coalescing

if the undo element we want to add only changes stuff that was already
modified by the previous one on undo stack (in the same group), then
skip it. There is nothing to gain in adding it to the stack.

The typical use case is when doing a search and replace in a large
document that does many replacements in each paragraph. In this case,
the same paragraph would be stored repeatedly.

Fixes bug #12564.
src/Undo.cpp