]> git.lyx.org Git - features.git/commitdiff
Limit fix for bug #6063 to math insets and only when inline completion
authorEnrico Forestieri <forenr@lyx.org>
Mon, 18 Jul 2011 08:10:20 +0000 (08:10 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 18 Jul 2011 08:10:20 +0000 (08:10 +0000)
is disabled in math.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39337 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiCompleter.cpp

index b20280cb4f977b45811f0f5de5a2803f4b430564..da2d688c59688e90892a7ef407a5928f6cb83542 100644 (file)
@@ -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);