mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-22 11:51:04 +02:00
fix for comparguments: completion of options after option with
rest-arguments was wrong
This commit is contained in:
parent
8488dcb806
commit
b734769523
@ -1,5 +1,8 @@
|
||||
2000-04-03 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
|
||||
|
||||
* 10465: Src/Zle/computil.c: fix for completion of options
|
||||
after option with rest-arguments
|
||||
|
||||
* 10463: Src/builtin.c, Src/params.c, Src/zsh.h: PM_HASHELEM
|
||||
flag to keep association elements from being exported with
|
||||
ALL_EXPORT set
|
||||
|
@ -1427,7 +1427,8 @@ bin_comparguments(char *nam, char **args, char *ops, int func)
|
||||
if ((ca_laststate.opt || (ca_laststate.doff && ca_laststate.def) ||
|
||||
(ca_laststate.def &&
|
||||
(ca_laststate.def->type == CAA_OPT ||
|
||||
ca_laststate.def->type >= CAA_RARGS))) &&
|
||||
(ca_laststate.def->type >= CAA_RARGS &&
|
||||
ca_laststate.def->num < 0)))) &&
|
||||
(!ca_laststate.def || ca_laststate.def->type < CAA_RARGS ||
|
||||
(ca_laststate.def->type == CAA_RARGS ?
|
||||
(ca_laststate.curpos == ca_laststate.argbeg + 1) :
|
||||
|
Loading…
Reference in New Issue
Block a user