Skip to content

Commit 85c6ffe

Browse files
committed
delete unused code
1 parent b998ede commit 85c6ffe

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

autoload/easycomplete.vim

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,7 @@ function! s:CompleteTypingMatch(...)
316316
endif
317317
" 正常匹配为空,tabnine 结果也为空
318318
if len(filtered_menu) == 0 && len(tn_result) == 0
319-
" call s:log(">>>>>>>>>>>>>" . "匹配结果是空,导致pum关闭", "cword:", expand("<cword>"))
320-
" 正常SecondComplete中无匹配词了就关掉 pum 了
319+
" 正常SecondComplete中无匹配词应该关掉 pum
321320
if has('nvim')
322321
call s:CloseCompletionMenu()
323322
call s:CloseCompleteInfo()
@@ -479,15 +478,9 @@ function! easycomplete#CompleteDone()
479478
else
480479
call easycomplete#popup#CompleteDone()
481480
endif
482-
" 偶尔会有一些pum关闭后completeinfo没有关闭,这里做一个扫尾
483-
" if g:env_is_nvim && easycomplete#IsBacking()
484-
" call s:StopAsyncRun()
485-
" call s:AsyncRun(function("s:CompleteDoneTeardown"), [], 5)
486-
" endif
487481
if !s:SameCtx(easycomplete#context(), g:easycomplete_firstcomplete_ctx) && !s:zizzing()
488482
return
489483
endif
490-
" bugfix for #88
491484
if g:env_is_nvim
492485
" 触发 tabnine suggest
493486
if !easycomplete#pum#visible() && !easycomplete#IsBacking() && easycomplete#tabnine#ready()

lua/easycomplete.lua

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ local log = util.log
66
local global_timer = vim.loop.new_timer()
77
local global_timer_counter = 1
88

9-
local function test()
10-
console(vim.inspect(util))
11-
console(require'nvim-lsp-installer.servers'.get_installed_server_names())
12-
console(require'nvim-lsp-installer'.get_install_completion())
13-
end
14-
159
-- 全局配置函数
1610
-- @param config, 全局配置的对象
1711
-- @return this, 以便链式调用

0 commit comments

Comments
 (0)