Set cursor pos after cursor idx to avoid invalid cursor.

Fixes: #9076
This commit is contained in:
Juergen Spitzmueller 2014-04-04 11:39:22 +02:00
parent 7c266edfa8
commit fb21a63339

View File

@ -734,8 +734,8 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
cur.idx() = 0;
cur.resetAnchor();
cur.setSelection(true);
cur.pos() = cur.lastpos();
cur.idx() = cur.lastidx();
cur.pos() = cur.lastpos();
break;
case LFUN_PARAGRAPH_UP: