From 79b060e2e9e1c59bdfdc97b44bcbf38dfce9dff9 Mon Sep 17 00:00:00 2001 From: Prabir Shrestha Date: Sat, 26 May 2018 12:43:30 -0700 Subject: [PATCH] cleanup s:python_complete() --- autoload/asyncomplete.vim | 9 --------- 1 file changed, 9 deletions(-) diff --git a/autoload/asyncomplete.vim b/autoload/asyncomplete.vim index 2f9fcdb..b947a2b 100644 --- a/autoload/asyncomplete.vim +++ b/autoload/asyncomplete.vim @@ -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)