mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
Minor bug fix in mime-completion-filter - correctly handle when there is no mimetype
darcs-hash:20070801173955-ac50b-0459fc6049e9ee1907c368b8a5a01b6aa1973e45.gz
This commit is contained in:
parent
58fd6b895a
commit
cd19320ab2
@ -13,7 +13,7 @@ function __fish_filter_mime -d "Select files with a specific mimetype"
|
|||||||
set -l mime (mimedb -f $argv)
|
set -l mime (mimedb -f $argv)
|
||||||
set -l res
|
set -l res
|
||||||
|
|
||||||
for i in (seq (count $argv))
|
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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user