From ebdd03d477a849929af0f05ead81fd3275560aaf Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 26 Dec 2007 14:10:24 +0000 Subject: [PATCH] Properly fix undo/redo following scroll work. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22315 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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: -- 2.39.5