diff options
author | Andreas Raster <lazor@affenbande.org> | 2011-06-21 17:02:49 +0200 |
---|---|---|
committer | Andreas Raster <lazor@affenbande.org> | 2011-06-21 17:02:49 +0200 |
commit | 8e2db29c9ae167516f1be25e1d849aecc3b04c3a (patch) | |
tree | ea16e14889722f7201c0f99e69def3e8e412e02b /share/functions/__fish_complete_cd.fish | |
parent | 2583638f4bb0b1b46f82f6ed2320a644f2c8e64b (diff) |
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
Diffstat (limited to 'share/functions/__fish_complete_cd.fish')
-rw-r--r-- | share/functions/__fish_complete_cd.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/__fish_complete_cd.fish b/share/functions/__fish_complete_cd.fish index dbc7f766..4d3ee7c9 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 |