forgot a case...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2628 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-08-30 10:10:33 +00:00
parent 63adecdf8a
commit 1ac1b8e07b

View File

@ -1289,6 +1289,11 @@ void MathCursor::interpret(string const & s)
if (lastcode_ == LM_TC_TEX) { if (lastcode_ == LM_TC_TEX) {
if (macroName().empty()) { if (macroName().empty()) {
if (strchr("#$%{|}", c)) {
insert(new MathCharInset(c, LM_TC_TEX));
lastcode_ = LM_TC_VAR;
return;
}
insert(c, LM_TC_TEX); insert(c, LM_TC_TEX);
if (!isalpha(c)) { if (!isalpha(c)) {
macroModeClose(); macroModeClose();