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:
axel 2007-08-02 03:39:55 +10:00
parent 58fd6b895a
commit cd19320ab2

View File

@ -13,7 +13,7 @@ function __fish_filter_mime -d "Select files with a specific mimetype"
set -l mime (mimedb -f $argv)
set -l res
for i in (seq (count $argv))
for i in (seq (count $mime))
switch $mime[$i]
case $mime_search
set res $res $argv[$i]