]> git.lyx.org Git - features.git/commitdiff
Show cursor correctly when 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>
Fri, 23 Nov 2018 16:05:46 +0000 (17:05 +0100)
This is a fixup to 4ecbff00. 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.

(cherry picked from commit 2dc84b69d5a040e6343e21606f1c16a7c0957383)

src/BufferView.cpp
status.23x

index 173c7b0a7eadde7f15d82d345e028c151b643681..637c5b0b857a545a75e138c3c3bed4b72c47c2cb 100644 (file)
@@ -852,7 +852,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;
index 3c6bac77da0c5c02b0cc0942b195ba28e320c649..4060bc9fb957e8f52d6b9a868a030296f4cdf9c1 100644 (file)
@@ -160,7 +160,7 @@ What's new
 
 - Avoid white space before math completion (bug 11283).
 
-- View and change Plural, Capitalization, and No Prefix options for 
+- View and change Plural, Capitalization, and No Prefix options for
   cross-references from the context menu (bug 11070).
 
 - Don't step counters in deleted material (bug 11135).
@@ -183,6 +183,8 @@ What's new
 
 - Avoid extra space at the end of tooltips (bug 11353).
 
+- Show cursor correctly when loading file (bug 11377).
+
 
 * INTERNALS