]> git.lyx.org Git - features.git/commitdiff
Honour preferences by allowing inline completion in mathed on "Ctrl-L".
authorEnrico Forestieri <forenr@lyx.org>
Sun, 12 Jul 2009 14:56:38 +0000 (14:56 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 12 Jul 2009 14:56:38 +0000 (14:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30507 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXFunc.cpp

index 29d4db283267782891ecfe519fd6a7ac3f986abc..98b21d1872e788cd8c35d2626d3d4ef6816afeee 100644 (file)
@@ -1708,7 +1708,8 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                        // processKeySym to avoid another redraw just for a
                        // changed inline completion
                        if (cmd.origin == FuncRequest::KEYBOARD) {
-                               if (cmd.action == LFUN_SELF_INSERT)
+                               if (cmd.action == LFUN_SELF_INSERT
+                                   || (cmd.action == LFUN_ERT_INSERT && view()->cursor().inMathed()))
                                        lyx_view_->updateCompletion(view()->cursor(), true, true);
                                else if (cmd.action == LFUN_CHAR_DELETE_BACKWARD)
                                        lyx_view_->updateCompletion(view()->cursor(), false, true);