mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Fix __fish_filter_mime to not pass 0 to seq
This commit is contained in:
parent
74ef1bc8ff
commit
79f8d5c51e
1 changed files with 8 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue