Fix loop of word-delete-backward at the start of a paragraph.
This commit is contained in:
Guillaume Munch 2017-02-19 14:54:44 +01:00
parent a1d7b58e6e
commit 591b311984

View File

@ -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;