Skip to content

Commit 7bec73e

Browse files
committed
bugfix for lint popup at insert mode()
1 parent b5bb6c6 commit 7bec73e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

autoload/easycomplete.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2684,7 +2684,7 @@ endfunction
26842684

26852685
function! easycomplete#CursorMoved()
26862686
if g:easycomplete_diagnostics_enable
2687-
\ && easycomplete#util#NormalMode() && easycomplete#util#NotInsertMode()
2687+
\ && easycomplete#util#NormalMode() && s:NotInsertMode()
26882688
" 防止快速换行时的密集调用带来的卡顿
26892689
if s:easycomplete_cursor_move_timer > 0
26902690
call timer_stop(s:easycomplete_cursor_move_timer)

autoload/easycomplete/sign.vim

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,10 +495,13 @@ function! easycomplete#sign#LintPopup()
495495
call easycomplete#sign#DiagHoverFlush()
496496
return
497497
endif
498-
if easycomplete#util#InsertMode() && easycomplete#popup#LintPopupVisible()
498+
if easycomplete#util#InsertMode()
499499
call easycomplete#popup#CloseLintPopup()
500500
return
501501
endif
502+
" if easycomplete#popup#LintPopupVisible()
503+
" call easycomplete#popup#CloseLintPopup()
504+
" endif
502505
let ctx = easycomplete#context()
503506
" 换行则先清空
504507
if g:easycomplete_diagnostics_last_ln != ctx["lnum"]
@@ -692,3 +695,7 @@ endfunction
692695
function! s:StopAsyncRun(...)
693696
return call('easycomplete#util#StopAsyncRun', a:000)
694697
endfunction
698+
699+
function! s:trace(...)
700+
return call('easycomplete#util#trace', a:000)
701+
endfunction

0 commit comments

Comments
 (0)