Reset inline completion after undo/redo

Fixes bug #12383.
This commit is contained in:
Jean-Marc Lasgouttes 2021-10-12 15:45:04 +02:00
parent ada713a881
commit 40ee8d2a1a

View File

@ -1481,6 +1481,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
else {
dr.screenUpdate(Update::Force | Update::FitCursor);
dr.forceBufferUpdate();
resetInlineCompletionPos();
if (buffer().params().citeEngine() != engine ||
buffer().params().citeEngineType() != enginetype)
buffer().invalidateCiteLabels();
@ -1501,6 +1502,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
else {
dr.screenUpdate(Update::Force | Update::FitCursor);
dr.forceBufferUpdate();
resetInlineCompletionPos();
if (buffer().params().citeEngine() != engine ||
buffer().params().citeEngineType() != enginetype)
buffer().invalidateCiteLabels();