1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-26 18:01:03 +02:00

Added the makecommaspecial() routine that completion uses when

it is completing filenames into an open brace list.
This commit is contained in:
Wayne Davison 2006-02-13 10:59:22 +00:00
parent 4ae3672ce8
commit a4d4cf5cf8

View file

@ -2515,6 +2515,8 @@ equalsplit(char *s, char **t)
return 0;
}
static int specialcomma;
/* the ztypes table */
/**/
@ -2614,10 +2616,22 @@ inittyptab(void)
}
for (s = SPECCHARS; *s; s++)
typtab[STOUC(*s)] |= ISPECIAL;
if (specialcomma)
typtab[STOUC(',')] |= ISPECIAL;
if (isset(BANGHIST) && bangchar && interact && isset(SHINSTDIN))
typtab[bangchar] |= ISPECIAL;
}
/**/
void
makecommaspecial(int yesno)
{
if ((specialcomma = yesno) != 0)
typtab[STOUC(',')] |= ISPECIAL;
else
typtab[STOUC(',')] &= ~ISPECIAL;
}
/**/
#ifdef MULTIBYTE_SUPPORT