mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
Do not confuse global commands with ERT macros
This commit is contained in:
parent
314e30d5fd
commit
6a3ced3cfb
@ -1479,7 +1479,8 @@ bool Cursor::macroModeClose()
|
|||||||
bool keep_mathmode = it != words.end() && (it->second.inset == "font"
|
bool keep_mathmode = it != words.end() && (it->second.inset == "font"
|
||||||
|| it->second.inset == "oldfont"
|
|| it->second.inset == "oldfont"
|
||||||
|| it->second.inset == "mbox");
|
|| it->second.inset == "mbox");
|
||||||
bool ert_macro = !user_macro && it == words.end();
|
bool ert_macro = !user_macro && it == words.end()
|
||||||
|
&& !atom.nucleus()->asInsetMath();
|
||||||
|
|
||||||
if (in && in->currentMode() == Inset::TEXT_MODE
|
if (in && in->currentMode() == Inset::TEXT_MODE
|
||||||
&& atom.nucleus()->currentMode() == Inset::MATH_MODE
|
&& atom.nucleus()->currentMode() == Inset::MATH_MODE
|
||||||
|
Loading…
Reference in New Issue
Block a user