Skip to content

Commit

Permalink
bugfix for 50 delay
Browse files Browse the repository at this point in the history
  • Loading branch information
jayli committed Dec 19, 2023
1 parent aa57c4a commit 23c647a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/easycomplete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ function! s:CompleteTypingMatch(...)
let filtered_menu = easycomplete#util#CompleteMenuFilter(local_menuitems, word, 250)
if len(filtered_menu) == 0
if has('nvim')
call s:AsyncRun(function('s:CloseCompletionMenu'),[], 50)
" 这里为啥有 50 的 delay?导致关闭的时候有一个延迟
call s:AsyncRun(function('s:CloseCompletionMenu'),[], 0)
call s:CloseCompleteInfo()
else
call s:CloseCompletionMenu()
Expand Down

0 comments on commit 23c647a

Please sign in to comment.