]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.C
some changes to make some compilers somewhat happier
[lyx.git] / src / lyxfunc.C
index 34eaec042ea2ab6c60c6e66e289f2019c2e8b25d..90ef5d5c726bb37402e610414ac1346d024fa5ce 100644 (file)
@@ -723,7 +723,6 @@ func_status::value_type LyXFunc::getStatus(int ac,
                        break;
                }
        }
-#if 0
        else {
                MathTextCodes tc = mathcursor->getLastCode();
                switch (action) {
@@ -752,7 +751,6 @@ func_status::value_type LyXFunc::getStatus(int ac,
                        break;
                }
        }
-       #endif
        
        return flag;
 }
@@ -930,7 +928,6 @@ string const LyXFunc::dispatch(int ac,
        case LFUN_ESCAPE:
        {
                if (!owner->view()->available()) break;
-               
                // this function should be used always [asierra060396]
                UpdatableInset * tli =
                        owner->view()->theLockingInset();
@@ -947,6 +944,7 @@ string const LyXFunc::dispatch(int ac,
                                                        lock,
                                                        true);
                        }
+                       finishUndo();
                }
        }
        break;