commit 421509b2600320ceaa5f9739d38efb5c99f75cd5
Author: Scott Kostyshak <[email protected]>
Date: Sat Aug 17 16:35:01 2019 -0400
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.
(cherry picked from commit 27f89144bbc054c2afd5ca9d7540805138d44de1)
---
src/Text3.cpp | 4 +++-
status.23x | 2 ++
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/Text3.cpp b/src/Text3.cpp
index e584d83..393b556 100644
--- a/src/Text3.cpp
+++ b/src/Text3.cpp
@@ -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;
diff --git a/status.23x b/status.23x
index 19be58d..e82aaf4 100644
--- a/status.23x
+++ b/status.23x
@@ -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