Revert "Reset inline completion after undo/redo"

Try a solution closer to other code instead.

This reverts commit e59aee4580.
This commit is contained in:
Jean-Marc Lasgouttes 2021-10-14 16:26:21 +02:00
parent 7652747e26
commit 91c5061d26

View File

@ -1481,7 +1481,6 @@ 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();
@ -1502,7 +1501,6 @@ 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();