mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
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:
parent
91c5061d26
commit
06acb7f806
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user