mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-30 05:40:58 +01:00
41772: fix bug in handling of long options with _arguments' -A option
This commit is contained in:
parent
9b4962a772
commit
80a02c10aa
3 changed files with 10 additions and 1 deletions
|
|
@ -1824,7 +1824,7 @@ ca_inactive(Cadef d, char **xor, int cur, int opts)
|
|||
char *x;
|
||||
/* current word could be a prefix of a longer one so only do
|
||||
* exclusions for single-letter options (for option clumping) */
|
||||
int single = (cur == compcurrent);
|
||||
int single = !opts && (cur == compcurrent);
|
||||
|
||||
for (; (x = (opts ? "-" : *xor)); xor++) {
|
||||
int excludeall = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue