X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmathed%2FInsetMathNest.C;h=367b4a65b743a143ad3eddb5e0ad90d01d7bbe63;hb=ca6838b288daf07eec7d7a381d74c639c0de3a46;hp=30f5d845b29c853fccd3291ee9e05f31355c0723;hpb=dd91a7f6b6cb4cb7caad94037193ee8eb3eebbee;p=lyx.git diff --git a/src/mathed/InsetMathNest.C b/src/mathed/InsetMathNest.C index 30f5d845b2..367b4a65b7 100644 --- a/src/mathed/InsetMathNest.C +++ b/src/mathed/InsetMathNest.C @@ -401,11 +401,12 @@ void InsetMathNest::handleFont { // this whole function is a hack and won't work for incremental font // changes... - recordUndo(cur, Undo::ATOMIC); - if (cur.inset().asInsetMath()->name() == font) + if (cur.inset().asInsetMath()->name() == font) { + recordUndoInset(cur, Undo::ATOMIC); cur.handleFont(to_utf8(font)); - else { + } else { + recordUndo(cur, Undo::ATOMIC); cur.handleNest(createInsetMath(font)); cur.insert(arg); } @@ -983,6 +984,12 @@ void InsetMathNest::doDispatch(LCursor & cur, FuncRequest & cmd) interpretChar(cur, '^'); break; + case LFUN_QUOTE_INSERT: + // interpret this as if a straight " was typed + recordUndo(cur, Undo::ATOMIC); + interpretChar(cur, '\"'); + break; + // FIXME: We probably should swap parts of "math-insert" and "self-insert" // handling such that "self-insert" works on "arbitrary stuff" too, and // math-insert only handles special math things like "matrix".