From: Jean-Marc Lasgouttes Date: Thu, 18 Sep 2008 14:34:33 +0000 (+0000) Subject: LyXFunc::dispatch: do no close the undo group too early X-Git-Tag: 1.6.10~3421 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=bf02b246f91c98aee40e2d28138bcac319296bd3;p=features.git LyXFunc::dispatch: do no close the undo group too early git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26442 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/LyXFunc.cpp b/src/LyXFunc.cpp index 6f4f616095..9e25d5c4d8 100644 --- a/src/LyXFunc.cpp +++ b/src/LyXFunc.cpp @@ -1591,10 +1591,6 @@ void LyXFunc::dispatch(FuncRequest const & cmd) 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(); @@ -1603,6 +1599,10 @@ void LyXFunc::dispatch(FuncRequest const & cmd) 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