mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Do not redraw cursor twice with Page Up/Down
Just recompute metrics instead of triggering a full redraw. The old behavior was that, when the document was less that one page long, the cursor would blink to the top of the document before going to its correct position.
This commit is contained in:
parent
a78eb4471f
commit
1cbbe5c3aa
@ -1855,7 +1855,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
||||
cur.setCursor(doc_iterator_begin(cur.buffer()));
|
||||
cur.selHandle(false);
|
||||
// Force an immediate computation of metrics because we need it below
|
||||
processUpdateFlags(Update::Force);
|
||||
updateMetrics();
|
||||
|
||||
d->text_metrics_[&buffer_.text()].editXY(cur, p.x_, p.y_,
|
||||
true, act == LFUN_SCREEN_UP);
|
||||
|
Loading…
Reference in New Issue
Block a user