]> git.lyx.org Git - features.git/commitdiff
Fix http://bugzilla.lyx.org/show_bug.cgi?id=5023
authorAbdelrazak Younes <younes@lyx.org>
Fri, 11 Jul 2008 09:03:09 +0000 (09:03 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 11 Jul 2008 09:03:09 +0000 (09:03 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25560 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index 4f240b5340125198e40659f296ed812026828bab..009017c2ae7d1f0b5571788f41de1801a0c41340 100644 (file)
@@ -1165,6 +1165,8 @@ bool BufferView::dispatch(FuncRequest const & cmd)
                buffer_.text().cursorBottom(d->cursor_);
                // accept everything in a single step to support atomic undo
                buffer_.text().acceptOrRejectChanges(d->cursor_, Text::ACCEPT);
+               // FIXME: Move this LFUN to Buffer so that we don't have to do this:
+               processUpdateFlags(Update::Force | Update::FitCursor);
                break;
 
        case LFUN_ALL_CHANGES_REJECT:
@@ -1175,6 +1177,8 @@ bool BufferView::dispatch(FuncRequest const & cmd)
                // reject everything in a single step to support atomic undo
                // Note: reject does not work recursively; the user may have to repeat the operation
                buffer_.text().acceptOrRejectChanges(d->cursor_, Text::REJECT);
+               // FIXME: Move this LFUN to Buffer so that we don't have to do this:
+               processUpdateFlags(Update::Force | Update::FitCursor);
                break;
 
        case LFUN_WORD_FIND: {