mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +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
|
||||
end
|
||||
|
||||
set -l res
|
||||
|
||||
for i in (seq (count $mime))
|
||||
switch $mime[$i]
|
||||
case $mime_search
|
||||
set res $res $argv[$i]
|
||||
if count $mime > /dev/null
|
||||
set -l res
|
||||
for i in (seq (count $mime))
|
||||
switch $mime[$i]
|
||||
case $mime_search
|
||||
set res $res $argv[$i]
|
||||
end
|
||||
end
|
||||
printf "%s\n" $res
|
||||
end
|
||||
printf "%s\n" $res
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue