Revert "Update correctly completion after undo"

This reverts commit 06acb7f806.
This commit is contained in:
Jean-Marc Lasgouttes 2021-10-18 17:35:48 +02:00
parent e2a99b0a0c
commit ada713a881

View File

@ -4067,10 +4067,8 @@ void GuiView::dispatchToBufferView(FuncRequest const & cmd, DispatchResult & dr)
// Let the current BufferView dispatch its own actions. // Let the current BufferView dispatch its own actions.
bv->dispatch(cmd, dr); bv->dispatch(cmd, dr);
if (dr.dispatched()) { 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", ""); updateDialog("document", "");
}
return; return;
} }