From beb6d505de4b458e00915d5af112fbdea18ccd53 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Wed, 7 Sep 2011 07:57:14 +0000 Subject: [PATCH] Limit fix for bug #6063 to math insets and only when inline completion is disabled in math. This is a backport of r39337. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39627 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiCompleter.cpp | 2 +- status.20x | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiCompleter.cpp b/src/frontends/qt4/GuiCompleter.cpp index b20280cb4f..da2d688c59 100644 --- a/src/frontends/qt4/GuiCompleter.cpp +++ b/src/frontends/qt4/GuiCompleter.cpp @@ -311,7 +311,7 @@ void GuiCompleter::updateVisibility(Cursor & cur, bool start, bool keep, bool cu if (!inlineVisible() && possibleInlineState && start && cur.inset().automaticInlineCompletion()) inline_timer_.start(int(lyxrc.completion_inline_delay * 1000)); - else { + else if (cur.inMathed() && !lyxrc.completion_inline_math) { // no inline completion, hence a metrics update is needed if (!(cur.result().screenUpdate() & Update::Force)) cur.screenUpdateFlags(cur.result().screenUpdate() | Update::SinglePar); diff --git a/status.20x b/status.20x index 9ddbedc001..0934c1f35b 100644 --- a/status.20x +++ b/status.20x @@ -31,6 +31,8 @@ What's new - Updated German and Slovak user interface localization. +- Speed up cursor movement when inline completion is enabled in math. + * DOCUMENTATION AND LOCALIZATION -- 2.39.5