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 27f89144bb)
This commit is contained in:
Scott Kostyshak 2019-08-17 16:35:01 -04:00
parent 1f2598a6a1
commit 421509b260
2 changed files with 5 additions and 1 deletions

View File

@ -3216,7 +3216,9 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
if (in_last_par) if (in_last_par)
end = cur.selectionEnd().pos(); end = cur.selectionEnd().pos();
else 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)) { if (beg != end && it.paragraph().isChanged(beg, end)) {
enable = true; enable = true;
break; break;

View File

@ -131,6 +131,8 @@ What's new
- Show filenames for verbatim includes in outliner (bug 11612). - Show filenames for verbatim includes in outliner (bug 11612).
- Enable change tracking if paragraph break change (bug 11629).
* INTERNALS * INTERNALS