Merge pull request #2347 from codenut/master

Fix for #2346
This commit is contained in:
w0rp 2019-03-11 09:07:31 +00:00 committed by GitHub
commit a6012d853c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -399,10 +399,10 @@ function! ale#completion#ParseLSPCompletions(response) abort
endfor
if has_key(l:info, 'prefix')
return ale#completion#Filter(l:buffer, &filetype, l:results, l:info.prefix)
let l:results = ale#completion#Filter(l:buffer, &filetype, l:results, l:info.prefix)
endif
return l:results
return l:results[: g:ale_completion_max_suggestions - 1]
endfunction
function! ale#completion#HandleTSServerResponse(conn_id, response) abort