mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 21:18:53 +00:00
Reverse order of files and directories in __fish_complete_suffix output
Ordering of directories above files was introduced in a recent change to the same script. By default it does not matter as completions are sorted by fish internally, but this allows the use of `-k` to sort files before directories (or piped to `sort -r` for vice-versa).
This commit is contained in:
parent
392cdd4338
commit
46b65a550f
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ function __fish_complete_suffix -d "Complete using files"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
set files $dirs $all
|
set files $all $dirs
|
||||||
if string match -qr '^\\./' -- $comp
|
if string match -qr '^\\./' -- $comp
|
||||||
set files ./$files
|
set files ./$files
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue