commit f7ebe1f70f137e8e08563ef4b8a8579a9a0ec40f
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Nov 21 13:49:20 2018 +0100
Show cursor correctly when loading file
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 | 2 +-
status.23x | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index 173c7b0..637c5b0 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -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;
diff --git a/status.23x b/status.23x
index 3c6bac7..4060bc9 100644
--- a/status.23x
+++ b/status.23x
@@ -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