mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +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.
(cherry picked from commit 27f89144bb
)
This commit is contained in:
parent
1f2598a6a1
commit
421509b260
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user