mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-25 14:20:53 +01:00
52189: ignore compadd -M if -U also specified as they don't make sense together
This fixes df completion.
This commit is contained in:
parent
985952e2f6
commit
70320635b4
3 changed files with 9 additions and 2 deletions
|
|
@ -829,7 +829,9 @@ bin_compadd(char *name, char **argv, UNUSED(Options ops), UNUSED(int func))
|
|||
|
||||
ca_args:
|
||||
|
||||
if (mstr && (match = parse_cmatcher(name, mstr)) == pcm_err) {
|
||||
if (mstr && (dat.aflags & CAF_MATCH) &&
|
||||
(match = parse_cmatcher(name, mstr)) == pcm_err)
|
||||
{
|
||||
zsfree(mstr);
|
||||
zfree(dat.dpar, dparsize);
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue