diff options
author | w0rp <w0rp@users.noreply.github.com> | 2019-03-11 09:07:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-11 09:07:31 +0000 |
commit | a6012d853c4bc5251b01cc7b58177ba665f11609 (patch) | |
tree | c4a440fc95637810759abd4089abc6a2287c48ca | |
parent | 03384a5d6f966b28efa136056e8b7b1b4f1c3d89 (diff) | |
parent | a5cf7e854b7afcd7ee1037840de5e01d5b64726a (diff) | |
download | ale-a6012d853c4bc5251b01cc7b58177ba665f11609.zip |
Merge pull request #2347 from codenut/master
Fix for #2346
-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 644fef99..682f4c43 100644 --- a/autoload/ale/completion.vim +++ b/autoload/ale/completion.vim @@ -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 |