about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Linux/_rpm2
-rw-r--r--Src/Zle/computil.c3
3 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 8cffd7d7f..a2b5b2a0b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-24  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 11552: Completion/Linux/_rpm, Src/Zle/computil.c: fix for
+ 	comparguments to make -s have an effect again
+	
 2000-05-24  Clint Adams  <schizo@debian.org>
 
 	* 11548: Completion/User/_ispell: add -h switch to
diff --git a/Completion/Linux/_rpm b/Completion/Linux/_rpm
index 95334339a..7841815bf 100644
--- a/Completion/Linux/_rpm
+++ b/Completion/Linux/_rpm
@@ -96,7 +96,7 @@ while [[ -n "$state" ]]; do
   case "$lstate" in
   query)
     _arguments -s \
-      '*-v[verbose mode]' -q \
+      '*-v[verbose mode]' -q -c \
       '--rcfile:resource file:_files' \
       '--ftpproxy:FTP proxy server:_hosts' \
       '--ftpport:FTP port number:' \
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index fc23b5286..e627f37a2 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -628,7 +628,6 @@ parse_cadef(char *nam, char **args)
 
     all = ret = alloc_cadef(oargs, single, match, flags);
     optp = &(ret->opts);
-    single = flags = 0;
     anum = 1;
 
     sargs = args;
@@ -664,7 +663,7 @@ parse_cadef(char *nam, char **args)
 		set_cadef_opts(ret);
 		ret = ret->snext = alloc_cadef(NULL, single, NULL, flags);
 		optp = &(ret->opts);
-		single = flags = nopts = ndopts = nodopts = 0;
+		nopts = ndopts = nodopts = 0;
 		anum = 1;
 	    }
 	    continue;