From: Abdelrazak Younes Date: Fri, 28 Sep 2007 07:32:19 +0000 (+0000) Subject: * BufferView::update(): fitCursor() optimization. X-Git-Tag: 1.6.10~8144 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b64f836199882b79958d4381a606fd241705fd56;p=features.git * BufferView::update(): fitCursor() optimization. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20560 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 345f05740f..21a3c9f67a 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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.