mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
When handling mouse events, make the undo group a bit larger
notifyCursorLeave can delete empty insets in mathed. Fixes bug #10022.
This commit is contained in:
parent
8f95d7cc3f
commit
98883304e2
@ -2225,8 +2225,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();
|
||||
@ -2235,6 +2233,8 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0)
|
||||
cursor().fixIfBroken();
|
||||
}
|
||||
|
||||
cur.endUndoGroup();
|
||||
|
||||
// Do we have a selection?
|
||||
theSelection().haveSelection(cursor().selection());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user