Merge pull request #1708 from lledey/master

Fix emacs completion on OS X
This commit is contained in:
ridiculousfish 2014-09-24 11:53:56 -07:00
commit 1096b1acd5

View File

@ -14,6 +14,7 @@ function __fish_complete_mime -d "Complete using text files"
set desc (mimedb -d $files)
# Format completions and descriptions
if count $files > /dev/null
set -l res
for i in (seq (count $files))
set res $res $files[$i]\t$desc[$i]
@ -22,6 +23,5 @@ function __fish_complete_mime -d "Complete using text files"
if test $res[1]
printf "%s\n" $res
end
end
end