]> git.lyx.org Git - features.git/commitdiff
Show cursor correctly whn loading file
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 21 Nov 2018 12:49:20 +0000 (13:49 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 22 Nov 2018 10:21:07 +0000 (11:21 +0100)
This is a fixup to 8d8988de4. When a file is loaded and the cursor is
set, it is required to first compute metrics to be able to scroll the
screen correctly.

Fixes bug #11377.

src/BufferView.cpp

index 8d15c97907c426f956f4d77d0f8dc009e92cad5e..95024f5bb6b1bb7a99f8840aeb41fe77e0bee8e6 100644 (file)
@@ -868,7 +868,7 @@ bool BufferView::moveToPosition(pit_type bottom_pit, pos_type bottom_pos,
                d->cursor_.setCurrentFont();
                // Do not forget to reset the anchor (see #9912)
                d->cursor_.resetAnchor();
-               processUpdateFlags(Update::FitCursor);
+               processUpdateFlags(Update::Force | Update::FitCursor);
        }
 
        return success;