- func->dispatch(lyxaction.lookupFunc(cmd));
- string const rval = to_utf8(func->getMessage());
- if (func->errorStat()) {
+ DispatchResult dr;
+ theApp()->dispatch(lyxaction.lookupFunc(cmd), dr);
+ theApp()->dispatch(FuncRequest(LFUN_PARAGRAPH_UPDATE));
+ string const rval = to_utf8(dr.message());
+ if (dr.error())