From: Scott Kostyshak Date: Sat, 17 Aug 2019 20:35:01 +0000 (-0400) Subject: Enable change tracking if paragraph break change X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a07397d6c7879b2f20820d5604d6ea024f37e729;p=features.git Enable change tracking if paragraph break change 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. --- diff --git a/src/Text3.cpp b/src/Text3.cpp index f234c7cb7d..57d44a177f 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -3353,7 +3353,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;