From 70411169809410901ba6f90b668a69eec2002003 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 20 Jan 2000 09:15:32 +0000 Subject: zsh-workers/9383 --- Completion/Core/_path_files | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Completion/Core') 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. -- cgit 1.4.1