+ MathNestInset::notifyCursorLeaves(cur);
+
+ lyxerr << "MathScriptInset::notifyCursorLeaves: 1 " << cur << endl;
+
+ // remove empty scripts if possible
+if (1) {
+ if (nargs() > 2 && cur.idx() == 2 && cell(2).empty()) {
+ // must be a subscript...
+ removeScript(false);
+ } else if (nargs() > 1 && cur.idx() == 1 && cell(1).empty()) {
+ // could be either subscript or super script
+ removeScript(cell_1_is_up_);
+ }
+}
+
+ lyxerr << "MathScriptInset::notifyCursorLeaves: 2 " << cur << endl;
+}
+
+
+void MathScriptInset::doDispatch(LCursor & cur, FuncRequest & cmd)
+{
+ //lyxerr << "MathScriptInset: request: " << cmd << std::endl;
+