Fix a completion error
This commit is contained in:
parent
fc2a34e9d8
commit
b4b75126f9
1 changed files with 2 additions and 2 deletions
|
@ -421,11 +421,11 @@ endfunction
|
||||||
function! s:CompletionStillValid(request_id) abort
|
function! s:CompletionStillValid(request_id) abort
|
||||||
let [l:line, l:column] = getpos('.')[1:2]
|
let [l:line, l:column] = getpos('.')[1:2]
|
||||||
|
|
||||||
return (
|
return has_key(b:, 'ale_completion_info')
|
||||||
|
\&& (
|
||||||
\ ale#util#Mode() is# 'i'
|
\ ale#util#Mode() is# 'i'
|
||||||
\ || b:ale_completion_info.source is# 'ale-import'
|
\ || 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.request_id == a:request_id
|
||||||
\&& b:ale_completion_info.line == l:line
|
\&& b:ale_completion_info.line == l:line
|
||||||
\&& (
|
\&& (
|
||||||
|
|
Reference in a new issue