When Inset::dispatch is called from TOC, process screen flags

This is needed because we are not using the complete dispatch
machinery here.

Part of bug #4582.
This commit is contained in:
Jean-Marc Lasgouttes 2022-11-04 21:46:32 +01:00
parent 0b27eb7deb
commit d2f05b9e6f

View File

@ -352,6 +352,8 @@ void Inset::dispatch(Cursor & cur, FuncRequest & cmd)
cur.screenUpdateFlags(Update::Force | Update::FitCursor); cur.screenUpdateFlags(Update::Force | Update::FitCursor);
cur.dispatched(); cur.dispatched();
doDispatch(cur, cmd); doDispatch(cur, cmd);
if (cmd.origin() == FuncRequest::TOC)
cur.bv().processUpdateFlags(cur.result().screenUpdate());
} }