From: Jean-Marc Lasgouttes Date: Wed, 21 Nov 2018 12:49:20 +0000 (+0100) Subject: Show cursor correctly whn loading file X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=79aa999cefa8e0668134e16479ad3c4eaeff5558;p=features.git Show cursor correctly whn loading file 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. --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 8d15c97907..95024f5bb6 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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;