diff --git a/src/mathed/math_nestinset.C b/src/mathed/math_nestinset.C index 4a5a918353..183ecf7e9a 100644 --- a/src/mathed/math_nestinset.C +++ b/src/mathed/math_nestinset.C @@ -1097,10 +1097,10 @@ bool MathNestInset::interpret(LCursor & cur, char c) return true; } - //if (c == '%') { - // cur.niceInsert(MathAtom(new MathCommentInset)); - // return true; - //} + if (c == '~') { + cur.niceInsert(createMathInset("sim")); + return true; + } // try auto-correction //if (autocorrect() && hasPrevAtom() && math_autocorrect(prevAtom(), c)) @@ -1115,7 +1115,7 @@ bool MathNestInset::interpret(LCursor & cur, char c) bool MathNestInset::script(LCursor & cur, bool up) { - // Hack to get \\^ and \\_ working + // Hack to get \^ and \_ working lyxerr << "handling script: up: " << up << endl; if (cur.inMacroMode() && cur.macroName() == "\\") { if (up)