]> git.lyx.org Git - lyx.git/commitdiff
Disable properly math inset locking
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 7 Dec 2023 16:21:45 +0000 (17:21 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 8 Dec 2023 14:32:21 +0000 (15:32 +0100)
It is not clear whether this feature was once documented and used (it
would have been 20 years ago).

It is mostly disable now, but there was a remaining bit that is
annoying now.

I'll try to restore this later.

src/mathed/InsetMathNest.cpp

index 901cc367781fb5076342f4164c0987d47bb03cce..37bbd40008c490116b4e90e577858808702eab80 100644 (file)
@@ -1147,6 +1147,8 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
                }
                break;
 
+#if 0
+// FIXME: resurrect this later
        // 'Locks' the math inset. A 'locked' math inset behaves as a unit
        // that is traversed by a single <CursorLeft>/<CursorRight>.
        case LFUN_INSET_TOGGLE:
@@ -1154,6 +1156,7 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
                lock(!lock());
                cur.popForward();
                break;
+#endif
 
        case LFUN_SELF_INSERT:
                // special case first for big delimiters