mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
91f7c3aacf
commit
27f89144bb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user