Fix a completion error

This commit is contained in:
w0rp 2020-09-07 10:00:36 +01:00
parent fc2a34e9d8
commit b4b75126f9
No known key found for this signature in database
GPG key ID: 0FC1ECAA8C81CD83

View file

@ -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
\&& (