From 66f181499b7961615cd0d72d7a8c8081751da303 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Mon, 1 Jan 2018 13:18:40 +0100 Subject: [PATCH] Strip quotes in __fish_complete_suffix Fixes #4481. --- share/functions/__fish_complete_suffix.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_complete_suffix.fish b/share/functions/__fish_complete_suffix.fish index a12d95e6b..7c5ad2e91 100644 --- a/share/functions/__fish_complete_suffix.fish +++ b/share/functions/__fish_complete_suffix.fish @@ -35,7 +35,7 @@ function __fish_complete_suffix -d "Complete using files" # 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" if test $files[1]