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
This commit is contained in:
Andreas Raster 2011-06-21 17:02:49 +02:00
parent 2583638f4b
commit 8e2db29c9a

View File

@ -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