commit 2dc84b69d5a040e6343e21606f1c16a7c0957383
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Nov 21 13:49:20 2018 +0100
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.
---
src/BufferView.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index 8d15c97..95024f5 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;