Fixes due to new math-insert syntax.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2543 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-08-18 10:33:17 +00:00
parent 1555e4c27c
commit 1148c5d181
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-08-15 Dekel Tsur <dekelts@tau.ac.il>
* lyxlex_pimpl.C (next): Treat \ as normal char if not followed by
" or \.
2001-08-16 Juergen Vigna <jug@sad.it>
* lyxfunc.C (dispatch): implemented the new FINISHED states.

View File

@ -264,7 +264,7 @@ bool FormMathsPanel::input(FL_OBJECT *, long data)
void FormMathsPanel::insertSymbol(string const & sym) const
{
lv_->getLyXFunc()->dispatch(LFUN_INSERT_MATH, sym);
lv_->getLyXFunc()->dispatch(LFUN_INSERT_MATH, '\\' + sym);
}

View File

@ -311,7 +311,10 @@ bool LyXLex::Pimpl::next(bool esc /* = false */)
// escape the next char
is.get(cc);
c = cc;
escaped = true;
if (c == '\"' || c == '\\')
escaped = true;
else
buff[++i] = '\\';
}
buff[++i] = c;