diff --git a/autoload/copilot.vim b/autoload/copilot.vim index 9a9ec77a..533e96aa 100644 --- a/autoload/copilot.vim +++ b/autoload/copilot.vim @@ -119,6 +119,7 @@ function! copilot#Clear() abort endif call s:UpdatePreview() unlet! b:_copilot + let g:copilot_suggestion_shown = 0 return '' endfunction @@ -397,6 +398,7 @@ function! s:UpdatePreview() abort endif if uuid !=# get(s:, 'uuid', '') let s:uuid = uuid + let g:copilot_suggestion_shown = 1 call copilot#Request('notifyShown', {'uuid': uuid}) endif catch