diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-01-20 09:15:32 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-01-20 09:15:32 +0000 |
commit | 70411169809410901ba6f90b668a69eec2002003 (patch) | |
tree | 6186c3185483ade3cc1347feee5b8b4c2453ed57 /Completion/Core | |
parent | aaf6682903d1a5cdb7a4c683f83c81a7af417d72 (diff) | |
download | zsh-70411169809410901ba6f90b668a69eec2002003.tar.gz zsh-70411169809410901ba6f90b668a69eec2002003.tar.xz zsh-70411169809410901ba6f90b668a69eec2002003.zip |
zsh-workers/9383
Diffstat (limited to 'Completion/Core')
-rw-r--r-- | Completion/Core/_path_files | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index e76a54882..9c1be30bf 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -157,6 +157,14 @@ if zstyle -s ":completion${curcontext}:files" sort tmp1; then fi fi +# Squeeze sequences of slashes +if zstyle -t ":completion${curcontext}:paths" squeeze-slashes +then + PREFIX="${PREFIX//(\\/)#//}" + SUFFIX="${SUFFIX//(\\/)#//}" + [[ $PREFIX = */ ]] && SUFFIX=${SUFFIX#/} +fi + # We get the prefix and the suffix from the line and save the whole # original string. Then we see if we will do menucompletion. |