mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Amend 71623b88
Fix loop of word-delete-backward at the start of a paragraph.
This commit is contained in:
parent
a1d7b58e6e
commit
591b311984
@ -2425,8 +2425,8 @@ bool Cursor::confirmDeletion(bool const before) const
|
||||
return inset->confirmDeletion();
|
||||
} else {
|
||||
DocIterator dit = selectionBegin();
|
||||
DocIterator const sel_end = selectionEnd();
|
||||
for (; dit < sel_end; dit.posForward())
|
||||
CursorSlice const end = selectionEnd().top();
|
||||
for (; dit.top() < end; dit.top().forwardPos())
|
||||
if (Inset const * inset = dit.nextInset())
|
||||
if (inset->confirmDeletion())
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user