fixup! Fix __fish_complete_suffix behavior for paths with literal .

This commit is contained in:
Mahmoud Al-Qudsi 2018-06-25 20:59:24 -05:00
parent 72d80c3d91
commit 49bfc4f000

View file

@ -36,8 +36,8 @@ function __fish_complete_suffix -d "Complete using files"
# Strip leading ./ as it confuses the detection of base and suffix
# It is conditionally re-added below.
set base (string replace -r '^("\')?\\./' '' -- $comp | string trim -c '\'"') # " make emacs syntax highlighting happy
echo "base: $base" > /dev/tty
echo "suffix: $suff" > /dev/tty
# echo "base: $base" > /dev/tty
# echo "suffix: $suff" > /dev/tty
set -l all
set -l dirs