Skip to content

Commit e568538

Browse files
committed
bugfix
1 parent 0cbd5bd commit e568538

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

autoload/easycomplete.vim

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,14 @@ function! easycomplete#CtlE()
15981598
endfunction
15991599

16001600
function! easycomplete#Esc()
1601-
call easycomplete#popup#close()
1601+
call easycomplete#popup#close("popup")
1602+
if easycomplete#util#InsertMode()
1603+
call easycomplete#popup#CloseLintPopup()
1604+
elseif easycomplete#popup#LintPopupVisible()
1605+
" do nothing
1606+
else
1607+
call easycomplete#popup#close("float")
1608+
endif
16021609
return "\<ESC>"
16031610
endfunction
16041611

0 commit comments

Comments
 (0)