diff options
author | w0rp <devw0rp@gmail.com> | 2020-09-07 10:00:36 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2020-09-07 10:01:18 +0100 |
commit | b4b75126f9eae30da8f5e0cb9ec100feb38c1cb6 (patch) | |
tree | 43abd40d906bfbbb9a7dbca3323e072806a6ed5e | |
parent | fc2a34e9d872e82e619b738f376ae6a0f46f3652 (diff) | |
download | ale-b4b75126f9eae30da8f5e0cb9ec100feb38c1cb6.zip |
Fix a completion error
-rw-r--r-- | autoload/ale/completion.vim | 4 |
1 files 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 \&& ( |