I came across what I thought was a bug. In the attached, if I put the cursor just inside the note and press ctrl + i for inset-toggle, I expected the note to close.
I looked around in the code, and I found an interesting chunk in InsetMathNest.cpp: // 'Locks' the math inset. A 'locked' math inset behaves as a unit // that is traversed by a single <CursorLeft>/<CursorRight>. case LFUN_INSET_TOGGLE: cur.recordUndo(); lock(!lock()); cur.popForward(); break; I don't know if that is actually related to the issue I was looking at, but I had never heard of this feature. Does anyone use it? Can someone give me an example of a case where it is used? Is it indeed saved in the file format? I think I might find this feature useful. It is fun to discover new features no matter how long I've been around LyX. Scott
inset-toggle-issue.23.lyx
Description: application/lyx
signature.asc
Description: PGP signature
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel