From 8f7beea0791ad8943338dc36d9ee41fd462eb6c2 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 24 May 2000 08:32:12 +0000 Subject: [PATCH] fix for comparguments to make -s have an effect again (11552) --- ChangeLog | 5 +++++ Completion/Linux/_rpm | 2 +- Src/Zle/computil.c | 3 +-- 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 + + * 11552: Completion/Linux/_rpm, Src/Zle/computil.c: fix for + comparguments to make -s have an effect again + 2000-05-24 Clint Adams * 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;