]> git.lyx.org Git - lyx.git/commit
Improve DEPM when change tracking is on
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 29 Jan 2019 10:20:22 +0000 (11:20 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 15 Feb 2019 10:04:28 +0000 (11:04 +0100)
commit7f177d8d4a88d84142bdd2939d4c65abe4b50a11
treeaadaf1465a2917be6332f9b14c3fb8aee50edea0
parent484128d05b95a014b4511bff891bf90c17f69d72
Improve DEPM when change tracking is on

A typical problem when change tracking is on is:
1/ insert a new space between two words (as if you want to insert a new one)
2/ move the cursor
3/ see how one has one inserted and one deleted space, whereas one would expect nothing.

The problem is fixed in a general way in master, but here we propose
a simpler one, where the spaces that we keep are the ones at the end
of the sequence of spaces.

Part of #11412.
src/Text2.cpp