Skip to content

Commit

Permalink
bugfix for nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
jayli committed Dec 23, 2023
1 parent 9647bfc commit 975b067
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions autoload/easycomplete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2195,6 +2195,15 @@ function! easycomplete#BufEnter()
call timer_start(1600, { -> easycomplete#lint() })
endif
endfunction

function! easycomplete#finish()
try
finish
catch
" do nothing
endtry
endfunction

function! s:HasKey(...)
return call('easycomplete#util#HasKey', a:000)
endfunction
Expand Down
1 change: 1 addition & 0 deletions plugin/easycomplete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ augroup easycomplete#NormalBinding
autocmd TextChangedI * : call easycomplete#TextChangedI()
autocmd TextChanged * call easycomplete#Textchanged()
autocmd InsertEnter * call easycomplete#InsertEnter()
autocmd VimLeavePre * call easycomplete#finish()
" SecondComplete Entry
autocmd CompleteChanged * noa call easycomplete#CompleteChanged()
autocmd TextChangedP * : noa call easycomplete#TextChangedP()
Expand Down

0 comments on commit 975b067

Please sign in to comment.