From: Abdelrazak Younes Date: Wed, 26 Dec 2007 14:10:24 +0000 (+0000) Subject: Properly fix undo/redo following scroll work. X-Git-Tag: 1.6.10~6794 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ebdd03d477a849929af0f05ead81fd3275560aaf;p=features.git Properly fix undo/redo following scroll work. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22315 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 96070bfec9..27d1f1a5cc 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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: