]> git.lyx.org Git - lyx.git/commit
Fix position of cursor when DEPM is used in change tracking mode
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 29 Jan 2019 09:55:12 +0000 (10:55 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 15 Feb 2019 10:03:17 +0000 (11:03 +0100)
commit484128d05b95a014b4511bff891bf90c17f69d72
tree404abb5188f25f9eecbce4be6b4e2aa0860425d5
parentc44dc071a5658380a1d6bdfcb6f138b70c17d2a5
Fix position of cursor when DEPM is used in change tracking mode

When change tracking is active, it may happen that spaces are marked
as deleted instead of being removed. Therefore it is better to measure
the change of size of the paragraph to know how to offset the cursor.

Moreover, it the cursor was strictly after the start of the sequence
of spaces, we ensure that it is still the case.

This commit is _not_ a backport from master, which has diverged.

Part of bug #11412/
src/Text2.cpp