cursorPosBeforeDispatchY_);
view()->cursor().dispatch(cmd);
- // we assume here that the buffer view has not
- // changed since the beginUndoGroup.
- view()->cursor().endUndoGroup();
-
// notify insets we just left
if (view()->cursor() != old) {
old.fixIfBroken();
view()->cursor().fixIfBroken();
}
+ // we assume here that the buffer view has not
+ // changed since the beginUndoGroup.
+ view()->cursor().endUndoGroup();
+
// update completion. We do it here and not in
// processKeySym to avoid another redraw just for a
// changed inline completion