commit 3bc80220a79dc7e02f90fa035b2afc102f9d531f
Author: Enrico Forestieri <[email protected]>
Date: Sun Sep 25 18:59:07 2016 +0200
Amend 6a3ced3c
ERT macros are also math insets, sigh...
---
src/Cursor.cpp | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/Cursor.cpp b/src/Cursor.cpp
index 2658d45..6f393e3 100644
--- a/src/Cursor.cpp
+++ b/src/Cursor.cpp
@@ -1479,8 +1479,7 @@ bool Cursor::macroModeClose()
bool keep_mathmode = it != words.end() && (it->second.inset == "font"
|| it->second.inset == "oldfont"
|| it->second.inset == "mbox");
- bool ert_macro = !user_macro && it == words.end()
- && !atom.nucleus()->asInsetMath();
+ bool ert_macro = !user_macro && it == words.end() && atomAsMacro;
if (in && in->currentMode() == Inset::TEXT_MODE
&& atom.nucleus()->currentMode() == Inset::MATH_MODE