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.
This commit is contained in:
Scott Kostyshak 2019-08-17 16:35:01 -04:00
parent 91f7c3aacf
commit 27f89144bb

View File

@ -3353,7 +3353,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;