Strip quotes in __fish_complete_suffix

Fixes #4481.
This commit is contained in:
Fabian Homborg 2018-01-01 13:18:40 +01:00
parent 75ac482cec
commit 66f181499b

View file

@ -35,7 +35,7 @@ function __fish_complete_suffix -d "Complete using files"
# Perform the completion # Perform the completion
set base (echo $comp |sed -e 's/\.[a-zA-Z0-9]*$//') set base (string replace -r '\.[^.]*$' '' -- $comp | string trim -c '\'"') # " make emacs syntax highlighting happy
eval "set files $base*$suff" eval "set files $base*$suff"
if test $files[1] if test $files[1]