mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
* BufferView::update(): fitCursor() optimization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20560 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e19fba4f15
commit
b64f836199
@ -257,6 +257,11 @@ bool BufferView::update(Update::flags flags)
|
||||
buffer_.changed();
|
||||
if (fitCursor())
|
||||
updateMetrics(false);
|
||||
else
|
||||
// The screen has already been updated thanks to the
|
||||
// 'buffer_.changed()' call three line above. So no need
|
||||
// to redraw again.
|
||||
return false;
|
||||
}
|
||||
|
||||
// tell the frontend to update the screen.
|
||||
|
Loading…
Reference in New Issue
Block a user