about summary refs log tree commit diff
path: root/Completion/Unix/Command/_perforce
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-09-27 14:50:23 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-09-27 14:50:23 +0000
commit11dc3a29cf2556f7b29d3d92570191a3a3c43dbb (patch)
treeb8aa5f3325a27b57aef7e7296665f7eba18dd550 /Completion/Unix/Command/_perforce
parent8f982856626fb000ba722373566ec089208ff67c (diff)
downloadzsh-11dc3a29cf2556f7b29d3d92570191a3a3c43dbb.tar.gz
zsh-11dc3a29cf2556f7b29d3d92570191a3a3c43dbb.tar.xz
zsh-11dc3a29cf2556f7b29d3d92570191a3a3c43dbb.zip
22778: basic completion for locate
unposted: fix todo.sh search completion
Diffstat (limited to 'Completion/Unix/Command/_perforce')
-rw-r--r--Completion/Unix/Command/_perforce4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_perforce b/Completion/Unix/Command/_perforce
index 8917b679f..7e2a27456 100644
--- a/Completion/Unix/Command/_perforce
+++ b/Completion/Unix/Command/_perforce
@@ -811,7 +811,7 @@ _perforce_retrieve_files() {
     # This may be faster, but won't use matcher specs etc.
     pfx=${(Q)PREFIX}
     compset -P '*/'
-    files=(${${${(f)"$(_perforce_call_p4 $1 $1 \"\$pfx\*\$\{\(Q\)SUFFIX\}\" 2>/dev/null)"}%\#*}##*/})
+    files=(${${${(f)"$(_perforce_call_p4 $1 $1 \"\$pfx\*\$\{\(Q\)SUFFIX\}\" 2>/dev/null)"}%%\#*}##*/})
   else
     # We need to limit the list to a directory.
     if [[ $PREFIX = */* ]]; then
@@ -820,7 +820,7 @@ _perforce_retrieve_files() {
       pfx="*"
     fi
     compset -P '*/'
-    files=(${${${(f)"$(_perforce_call_p4 $1 $1 \$pfx 2>/dev/null)"}%\#*}##*/})
+    files=(${${${(f)"$(_perforce_call_p4 $1 $1 \$pfx 2>/dev/null)"}%%\#*}##*/})
   fi
   [[ $#files -eq 1 && $files[1] = '' ]] && files=()
   shift