mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Fix emacs completion on OS X
Avoid calling seq with 0 as argument since its behaviour is wrong on OS X.
This commit is contained in:
parent
c4a453fb22
commit
73158d6255
1 changed files with 8 additions and 8 deletions
|
@ -14,14 +14,14 @@ function __fish_complete_mime -d "Complete using text files"
|
||||||
set desc (mimedb -d $files)
|
set desc (mimedb -d $files)
|
||||||
|
|
||||||
# Format completions and descriptions
|
# Format completions and descriptions
|
||||||
set -l res
|
if count $files > /dev/null
|
||||||
for i in (seq (count $files))
|
set -l res
|
||||||
set res $res $files[$i]\t$desc[$i]
|
for i in (seq (count $files))
|
||||||
end
|
set res $res $files[$i]\t$desc[$i]
|
||||||
|
end
|
||||||
|
|
||||||
if test $res[1]
|
if test $res[1]
|
||||||
printf "%s\n" $res
|
printf "%s\n" $res
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue