diff options
Diffstat (limited to 'Completion/Core/_path_files')
-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. |