commit 591b3119847bfeda1901211dc2db302771d0a487
Author: Guillaume Munch <g...@lyx.org>
Date:   Sun Feb 19 14:54:44 2017 +0100

    Amend 71623b88
    
    Fix loop of word-delete-backward at the start of a paragraph.
---
 src/Cursor.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Cursor.cpp b/src/Cursor.cpp
index e694a13..2de42ba 100644
--- a/src/Cursor.cpp
+++ b/src/Cursor.cpp
@@ -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;

Reply via email to