diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2003-05-08 10:30:45 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-05-08 10:30:45 +0000 |
commit | 78b02d9c036f6b0e0ec7896729a090ec7ccc7a5f (patch) | |
tree | bbba018cb7d52a3f7ea8dd3bcb6832f06be59132 /Completion/Unix/Type/_path_files | |
parent | 9d071829ecbcb34128c34d4b2855342f81f1dd48 (diff) | |
download | zsh-78b02d9c036f6b0e0ec7896729a090ec7ccc7a5f.tar.gz zsh-78b02d9c036f6b0e0ec7896729a090ec7ccc7a5f.tar.xz zsh-78b02d9c036f6b0e0ec7896729a090ec7ccc7a5f.zip |
18512: fix 18508 properly this time.
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 e33e17d6b..fc8edca02 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -208,7 +208,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=( '' ) |