]> git.lyx.org Git - features.git/commitdiff
Properly fix undo/redo following scroll work.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 26 Dec 2007 14:10:24 +0000 (14:10 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 26 Dec 2007 14:10:24 +0000 (14:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22315 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index 96070bfec913d9d0a99a53cb46918599a3350c1a..27d1f1a5cc9b0f3fa2d979cff8f3a2bfe80b8faf 100644 (file)
@@ -923,7 +923,8 @@ bool BufferView::dispatch(FuncRequest const & cmd)
                cur.clearSelection();
                if (!cur.textUndo())
                        cur.message(_("No further undo information"));
-               showCursor();
+               else
+                       processUpdateFlags(Update::Force | Update::FitCursor);
                break;
 
        case LFUN_REDO:
@@ -931,7 +932,8 @@ bool BufferView::dispatch(FuncRequest const & cmd)
                cur.clearSelection();
                if (!cur.textRedo())
                        cur.message(_("No further redo information"));
-               showCursor();
+               else
+                       processUpdateFlags(Update::Force | Update::FitCursor);
                break;
 
        case LFUN_FONT_STATE: