Update correctly completion after undo

This is take #2 after reverting e59aee458.

Request the completer to rebuild a completion after undo/redo.

Fixes #12383.
This commit is contained in:
Jean-Marc Lasgouttes 2021-10-14 16:39:33 +02:00
parent 91c5061d26
commit 06acb7f806

View File

@ -4067,8 +4067,10 @@ void GuiView::dispatchToBufferView(FuncRequest const & cmd, DispatchResult & dr)
// Let the current BufferView dispatch its own actions.
bv->dispatch(cmd, dr);
if (dr.dispatched()) {
if (cmd.action() == LFUN_REDO || cmd.action() == LFUN_UNDO)
if (cmd.action() == LFUN_REDO || cmd.action() == LFUN_UNDO) {
updateCompletion(bv->cursor(), true, false);
updateDialog("document", "");
}
return;
}