mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +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
|
||||
|
||||
set files $dirs $all
|
||||
set files $all $dirs
|
||||
if string match -qr '^\\./' -- $comp
|
||||
set files ./$files
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue