about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorDoug Kearns <dkearns@users.sourceforge.net>2005-07-16 11:57:43 +0000
committerDoug Kearns <dkearns@users.sourceforge.net>2005-07-16 11:57:43 +0000
commit4454ccf47eccd2dabef808bef6bb712ee2804a99 (patch)
treed96b16710ddda773badb16d734d674bdb8269f61 /Completion/Unix
parent9bc098247754e8929678a8bd196e5703093c3bce (diff)
downloadzsh-4454ccf47eccd2dabef808bef6bb712ee2804a99.tar.gz
zsh-4454ccf47eccd2dabef808bef6bb712ee2804a99.tar.xz
zsh-4454ccf47eccd2dabef808bef6bb712ee2804a99.zip
unposted: escape colons in _python -W option argument message
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_python4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_python b/Completion/Unix/Command/_python
index a430bcf4d..be27f8300 100644
--- a/Completion/Unix/Command/_python
+++ b/Completion/Unix/Command/_python
@@ -21,7 +21,7 @@ _arguments -C -s -S \
   '-u[unbuffered binary stdout and stderr]' \
   '-v[verbose (trace import statements)]' \
   '(1 * -)-V[display version information]' \
-  '-W+[warning control]:warning filter (action:message:category:module:lineno):(default always ignore module once error)' \
+  '-W+[warning control]:warning filter (action\:message\:category\:module\:lineno):(default always ignore module once error)' \
   '-x[skip first line of source, allowing use of non-Unix forms of #!cmd]' \
   '(-)1:script file:_files -g "*.py(|c|o)(-.)"' \
   '*::script argument: _normal' && return
@@ -32,7 +32,7 @@ if [[ "$state" = modules ]]; then
     ${${=${(f)"$(_call_program modules $words[1] -c \
       'from\ pydoc\ import\ help\;\ help\(\"modules\"\)')"}[2,-3]}:#\(package\)}
   )
-  _wanted modules expl module compadd -a modules
+  _wanted modules expl module compadd -a modules && return
 fi
 
 return 1