Properly fix broken cursor (part of #12134)

This commit is contained in:
Juergen Spitzmueller 2021-02-11 14:53:02 +01:00
parent 4cd80de69e
commit 59bead6dfa

View File

@ -5308,8 +5308,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
if (insertPlaintextString(cur.bv(), clip, false)) { if (insertPlaintextString(cur.bv(), clip, false)) {
// content has been replaced, // content has been replaced,
// so cursor might be invalid // so cursor might be invalid
cur.pos() = cur.lastpos(); cur.fixIfBroken();
cur.pit() = cur.lastpit();
bvcur.setCursor(cur); bvcur.setCursor(cur);
break; break;
} }