mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 23:04:22 +08:00
Merge pull request #1708 from lledey/master
Fix emacs completion on OS X
This commit is contained in:
commit
1096b1acd5
|
@ -14,14 +14,14 @@ function __fish_complete_mime -d "Complete using text files"
|
|||
set desc (mimedb -d $files)
|
||||
|
||||
# Format completions and descriptions
|
||||
set -l res
|
||||
for i in (seq (count $files))
|
||||
set res $res $files[$i]\t$desc[$i]
|
||||
end
|
||||
if count $files > /dev/null
|
||||
set -l res
|
||||
for i in (seq (count $files))
|
||||
set res $res $files[$i]\t$desc[$i]
|
||||
end
|
||||
|
||||
if test $res[1]
|
||||
printf "%s\n" $res
|
||||
if test $res[1]
|
||||
printf "%s\n" $res
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user