Skip to content

Commit

Permalink
bugfix for nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
jayli committed Jan 12, 2024
1 parent 76178b5 commit 49245b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autoload/easycomplete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2349,7 +2349,9 @@ function! easycomplete#TextChangedI()
" TextCHangedP 和 TextChangedI 是互斥的
if g:env_is_nvim && easycomplete#pum#visible()
" TextChangedP
" call s:RememberCtx()
" nvim pum 在 tab select 过程中会触发 TextchangedI,原生 pum 不应当触发
" 这里加一个逻辑,阻止掉 tab selecting 过程中的 textchangedp和textchangedi
" 事件, vim 中的逻辑不受影响
if easycomplete#pum#InsertZizzing()
call easycomplete#pum#InsertAwake()
else
Expand Down

0 comments on commit 49245b9

Please sign in to comment.