commit 6756637eb56d6efafcfbdedb26ee5f4c43392eb9
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Wed Mar 16 10:27:32 2016 +0100

    When handling mouse events, make the undo group a bit larger
    
    notifyCursorLeave can delete empty insets in mathed.
    
    Fixes bug #10022.

diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index 2e900e1..314612f 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -2243,8 +2243,6 @@ void BufferView::mouseEventDispatch(FuncRequest const & 
cmd0)
        if (!inset || !cur.result().dispatched())
                cur.dispatch(cmd);
 
-       cur.endUndoGroup();
-
        // Notify left insets
        if (cur != old) {
                bool badcursor = old.fixIfBroken() | cur.fixIfBroken();
@@ -2252,7 +2250,9 @@ void BufferView::mouseEventDispatch(FuncRequest const & 
cmd0)
                if (badcursor)
                        cursor().fixIfBroken();
        }
-       
+
+       cur.endUndoGroup();
+
        // Do we have a selection?
        theSelection().haveSelection(cursor().selection());
 
diff --git a/status.21x b/status.21x
index f8f2f53..fd05fd0 100644
--- a/status.21x
+++ b/status.21x
@@ -160,6 +160,9 @@ What's new
 
 - Erase correctly math multi-cell selections (bug 9747).
 
+- Fix warning about Undo when an empty subscript is automatically deleted in 
mathed
+  (bug 10022).
+
 * INTERNALS
 
 - Fix parsing problems of class and category declaration line in layout files

Reply via email to