mirror of
https://github.com/prabirshrestha/asyncomplete.vim.git
synced 2026-06-12 15:37:02 +02:00
cleanup s:python_complete()
This commit is contained in:
@@ -384,7 +384,6 @@ function! s:python_refresh_completions(ctx) abort
|
||||
let l:names = keys(s:matches)
|
||||
|
||||
if empty(l:names)
|
||||
call s:python_complete(a:ctx, a:ctx['col'], [])
|
||||
return
|
||||
endif
|
||||
|
||||
@@ -444,14 +443,6 @@ function! s:filter_completion_items(prefix, matches) abort
|
||||
return l:tmpmatches
|
||||
endfunction
|
||||
|
||||
function! s:python_complete(ctx, startcol, matches) abort
|
||||
if empty(a:matches)
|
||||
" no need to fire complete message
|
||||
return
|
||||
endif
|
||||
call s:core_complete(a:ctx, a:startcol, a:matches, s:matches)
|
||||
endfunction
|
||||
|
||||
function! s:python_cm_event(name, event, ctx) abort
|
||||
try
|
||||
call s:sources[a:name].on_event(s:sources[a:name], a:ctx, a:event)
|
||||
|
||||
Reference in New Issue
Block a user