Skip to content
This repository was archived by the owner on Aug 20, 2022. It is now read-only.

Commit 699109d

Browse files
Merge pull request #1 from gpanders/master
Filter blank completions
2 parents 8716887 + 23f5252 commit 699109d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

autoload/fish.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function! fish#Complete(findstart, base)
5252
let l:completions =
5353
\ system('fish -c "complete -C'.shellescape(a:base).'"')
5454
let l:cmd = substitute(a:base, '\v\S+$', '', '')
55-
for l:line in split(l:completions, '\n')
55+
for l:line in filter(split(l:completions, '\n'), 'len(v:val)')
5656
let l:tokens = split(l:line, '\t')
5757
call add(l:results, {'word': l:cmd.l:tokens[0],
5858
\'abbr': l:tokens[0],

0 commit comments

Comments
 (0)