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

Commit

Permalink
Merge pull request #1 from gpanders/master
Browse files Browse the repository at this point in the history
Filter blank completions
  • Loading branch information
georgewitteman authored Mar 5, 2020
2 parents 8716887 + 23f5252 commit 699109d
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 699109d

Please sign in to comment.