]> git.lyx.org Git - lyx.git/commitdiff
Fix #590
authorAndré Pönitz <poenitz@gmx.net>
Thu, 12 Aug 2004 21:48:21 +0000 (21:48 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 12 Aug 2004 21:48:21 +0000 (21:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8890 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_nestinset.C

index 4a5a91835332b4ed0268846208feb9d1a6607c5a..183ecf7e9aa3772cd57eb715eb9193a1a642a59b 100644 (file)
@@ -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)