From 27f89144bbc054c2afd5ca9d7540805138d44de1 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Sat, 17 Aug 2019 16:35:01 -0400 Subject: [PATCH] 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. --- src/Text3.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.2