Fix __fish_filter_mime to not pass 0 to seq

This commit is contained in:
ridiculousfish 2013-04-28 15:59:33 -07:00
parent 74ef1bc8ff
commit 79f8d5c51e

View file

@ -13,13 +13,14 @@ function __fish_filter_mime -d "Select files with a specific mimetype"
return 1 return 1
end end
set -l res if count $mime > /dev/null
set -l res
for i in (seq (count $mime)) for i in (seq (count $mime))
switch $mime[$i] switch $mime[$i]
case $mime_search case $mime_search
set res $res $argv[$i] set res $res $argv[$i]
end
end end
printf "%s\n" $res
end end
printf "%s\n" $res
end end