mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 06:41:42 +08:00
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:
parent
2583638f4b
commit
8e2db29c9a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user