Skip to content

Commit

Permalink
Filter blank completions
Browse files Browse the repository at this point in the history
  • Loading branch information
gpanders authored and blank_name committed Jan 5, 2020
1 parent 50b95cb commit c0172e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/fish.vim
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function! fish#Complete(findstart, base)
let l:completions =
\ system('fish -c "complete -C'.shellescape(a:base).'"')
let l:cmd = substitute(a:base, '\v\S+$', '', '')
for l:line in split(l:completions, '\n')
for l:line in filter(split(l:completions, '\n'), 'len(v:val)')
let l:tokens = split(l:line, '\t')
call add(l:results, {'word': l:cmd.l:tokens[0],
\'abbr': l:tokens[0],
Expand Down

0 comments on commit c0172e6

Please sign in to comment.