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:
Mahmoud Al-Qudsi 2018-07-30 14:31:45 -05:00
parent 392cdd4338
commit 46b65a550f

View file

@ -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