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/Command/_perforce | |
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/Command/_perforce')
-rw-r--r-- | Completion/Unix/Command/_perforce | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_perforce b/Completion/Unix/Command/_perforce index 3c7ee914c..9bcec8884 100644 --- a/Completion/Unix/Command/_perforce +++ b/Completion/Unix/Command/_perforce @@ -906,7 +906,7 @@ _perforce_jobviews() { # by various logical operators. The `=' could be a comparison, # but we don't currently bother with that here; it's a bit cumbersome # to complete. - local line type oldifs=$IFS IFS= key value + local line type oldifs=$IFS IFS= key value slash=/ local match mbegin mend # This is simply to split out two space-delimited words a backreferences. local m2words @@ -962,7 +962,7 @@ _perforce_jobviews() { for key in ${(k)p4fields}; do if [[ -n ${p4values[$key]} ]]; then - valuespec+=("${key}:${p4fields[$key]}:(${p4values[$key]//\\// })") + valuespec+=("${key}:${p4fields[$key]}:(${p4values[$key]//$slash/ })") elif [[ $key = job ]]; then # Nothing special for jobs; add our own completion. valuespec+=("${key}:Perforce job:_perforce_jobs") |