From b4b75126f9eae30da8f5e0cb9ec100feb38c1cb6 Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 7 Sep 2020 10:00:36 +0100 Subject: [PATCH] Fix a completion error --- autoload/ale/completion.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/ale/completion.vim b/autoload/ale/completion.vim index 96415202..bdade95c 100644 --- a/autoload/ale/completion.vim +++ b/autoload/ale/completion.vim @@ -421,11 +421,11 @@ endfunction function! s:CompletionStillValid(request_id) abort let [l:line, l:column] = getpos('.')[1:2] - return ( + return has_key(b:, 'ale_completion_info') + \&& ( \ ale#util#Mode() is# 'i' \ || b:ale_completion_info.source is# 'ale-import' \) - \&& has_key(b:, 'ale_completion_info') \&& b:ale_completion_info.request_id == a:request_id \&& b:ale_completion_info.line == l:line \&& (