]> git.lyx.org Git - features.git/commitdiff
Enable change tracking if paragraph break change
authorScott Kostyshak <skostysh@lyx.org>
Sat, 17 Aug 2019 20:35:01 +0000 (16:35 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 31 Aug 2019 19:06:08 +0000 (15:06 -0400)
When a selection spans more than one line, we now check for whether
there is a change at one position after the last position of each
fully selected line.

This fixes #11629.

(cherry picked from commit 27f89144bbc054c2afd5ca9d7540805138d44de1)

src/Text3.cpp
status.23x

index e584d83f47808e2ae04a44396e8075f890088aa2..393b556ad76f06d995f018a9d8d943f6af3c11d0 100644 (file)
@@ -3216,7 +3216,9 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
                                if (in_last_par)
                                        end = cur.selectionEnd().pos();
                                else
-                                       end = it.lastpos();
+                                       // the +1 is needed for cases, e.g., where there is a
+                                       // paragraph break. See #11629.
+                                       end = it.lastpos() + 1;
                                if (beg != end && it.paragraph().isChanged(beg, end)) {
                                        enable = true;
                                        break;
index 19be58dd33c4ec86bd8561f4221e3dde656800b1..e82aaf4b34a9c626b983a57383470dbcfc03dfb2 100644 (file)
@@ -131,6 +131,8 @@ What's new
 
 - Show filenames for verbatim includes in outliner (bug 11612).
 
+- Enable change tracking if paragraph break change (bug 11629).
+
 
 * INTERNALS