From: Jean-Marc Lasgouttes Date: Tue, 12 Oct 2021 13:45:04 +0000 (+0200) Subject: Reset inline completion after undo/redo X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e59aee458;hp=c242b2536401dc06ab5740d6c9c01013282ed795;p=features.git Reset inline completion after undo/redo Fixes bug #12383. --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 0f36dcab84..f7f2d3555e 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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();