mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Show cursor correctly when loading file
This is a fixup to4ecbff00
. 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 commit2dc84b69d5
)
This commit is contained in:
parent
f4c2cfa68f
commit
f7ebe1f70f
@ -852,7 +852,7 @@ bool BufferView::moveToPosition(pit_type bottom_pit, pos_type bottom_pos,
|
|||||||
d->cursor_.setCurrentFont();
|
d->cursor_.setCurrentFont();
|
||||||
// Do not forget to reset the anchor (see #9912)
|
// Do not forget to reset the anchor (see #9912)
|
||||||
d->cursor_.resetAnchor();
|
d->cursor_.resetAnchor();
|
||||||
processUpdateFlags(Update::FitCursor);
|
processUpdateFlags(Update::Force | Update::FitCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
|
@ -183,6 +183,8 @@ What's new
|
|||||||
|
|
||||||
- Avoid extra space at the end of tooltips (bug 11353).
|
- Avoid extra space at the end of tooltips (bug 11353).
|
||||||
|
|
||||||
|
- Show cursor correctly when loading file (bug 11377).
|
||||||
|
|
||||||
|
|
||||||
* INTERNALS
|
* INTERNALS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user