diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2003-05-12 10:55:21 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-05-12 10:55:21 +0000 |
commit | 11cd9b2de3b8ce3a73260673c5571fecbc95318f (patch) | |
tree | fbf2623dadfda977e6eb7e884c5815fffbc98e4c /Completion/Unix/Type/_path_files | |
parent | 6e77f38b925e3f37dc69b26efd6173df7281bbe8 (diff) | |
download | zsh-11cd9b2de3b8ce3a73260673c5571fecbc95318f.tar.gz zsh-11cd9b2de3b8ce3a73260673c5571fecbc95318f.tar.xz zsh-11cd9b2de3b8ce3a73260673c5571fecbc95318f.zip |
18512, modified: fix up for ${foo/\//stuf} fix
Diffstat (limited to 'Completion/Unix/Type/_path_files')
-rw-r--r-- | Completion/Unix/Type/_path_files | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index 664b0d85f..dc12c512d 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -204,7 +204,8 @@ if [[ "$pre" = [^][*?#^\|\<\>]#(\`[^\`]#\`|\$)*/* && "$compstate[quote]" != \' ] eval 'realpath=${(e)~linepath}' 2>/dev/null [[ -z "$realpath" || "$realpath" = "$linepath" ]] && return 1 pre="${pre#${linepath}}" - i="${#linepath//[^\\/]}" + i='[^/]' + i="${#linepath//$i}" orig="${orig[1,(in:i:)/][1,-2]}" donepath= prepaths=( '' ) |