Correctly categorize a textmode symbol in mathed.
This commit is contained in:
Enrico Forestieri 2019-03-24 17:28:01 +01:00
parent a0240c8d65
commit c2af2cfd94

View File

@ -306,10 +306,11 @@ bool Encodings::latexMathChar(char_type c, bool mathmode,
if (!encoding || command.empty()) {
command = it->second.textcommand();
needsTermination = !it->second.textnotermination();
addTextCmd(c);
}
if (mathmode)
addMathSym(c);
else
addTextCmd(c);
}
return use_math;
}