From 8e2db29c9ae167516f1be25e1d849aecc3b04c3a Mon Sep 17 00:00:00 2001 From: Andreas Raster Date: Tue, 21 Jun 2011 17:02:49 +0200 Subject: [PATCH] fixed an issue when trying to complete something like 'cd /mnt/windows7/Program\ Files\ \(' fish would always spew a huge error message all over my terminal complaining about some kind of tokenizer error, this patch fixed that --- share/functions/__fish_complete_cd.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_complete_cd.fish b/share/functions/__fish_complete_cd.fish index dbc7f766b..4d3ee7c99 100644 --- a/share/functions/__fish_complete_cd.fish +++ b/share/functions/__fish_complete_cd.fish @@ -20,7 +20,7 @@ function __fish_complete_cd -d "Completions for the cd command" if echo (commandline -ct)|sgrep '^/\|^\./\|^\.\./' >/dev/null # This is an absolute search path - eval printf '\%s\\tDirectory\\n' (commandline -ct)\*/ + eval printf '\%s\\tDirectory\\n' '(commandline -ct)'\*/ else # This is a relative search path # Iterate over every directory in CDPATH