summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2020-09-07 10:00:36 +0100
committerw0rp <devw0rp@gmail.com>2020-09-07 10:01:18 +0100
commitb4b75126f9eae30da8f5e0cb9ec100feb38c1cb6 (patch)
tree43abd40d906bfbbb9a7dbca3323e072806a6ed5e
parentfc2a34e9d872e82e619b738f376ae6a0f46f3652 (diff)
downloadale-b4b75126f9eae30da8f5e0cb9ec100feb38c1cb6.zip
Fix a completion error
-rw-r--r--autoload/ale/completion.vim4
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
\&& (