about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-02-18 14:36:01 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-02-18 14:36:01 +0000
commitbecf65dd7f1e512995eb928f212491d6b1cc8cc7 (patch)
tree675504523c72fbf12d1455e8801399cee82bb492 /Src/Zle
parentfa509f5219e18b664a7e559169d849b2ec9fb6f1 (diff)
downloadzsh-becf65dd7f1e512995eb928f212491d6b1cc8cc7.tar.gz
zsh-becf65dd7f1e512995eb928f212491d6b1cc8cc7.tar.xz
zsh-becf65dd7f1e512995eb928f212491d6b1cc8cc7.zip
allow an argument containing only a single colon as a separator between options to _arguments and specs (16669)
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/computil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index ae94bdf57..b5610fb77 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -1065,6 +1065,8 @@ parse_cadef(char *nam, char **args)
 
 	args++;
     }
+    if (*args && !strcmp(*args, ":"))
+        args++;
     if (!*args)
 	return NULL;