mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
6e36b20e42
With a blank $suff (i.e. complete all files), __fish_complete_suffix returned directories twice, once with the trailing `/` and once without. This fixes that, and additionally speeds up the code by no longer shelling out to `sort -u` as we no longer rely on brace expansion to enumerate directories and files simultaneously. In general, this behavior would occur when a directory exists that matches the suffix search pattern (so a dir named 'foo.bar' with a search pattern '.bar' would return 'foo.bar' twice). Runtime has dropped from ~22ms to ~8ms on my machine, while also returning more correct results. |
||
---|---|---|
.. | ||
completions | ||
functions | ||
groff | ||
tools | ||
__fish_build_paths.fish.in | ||
config.fish | ||
lynx.lss |