From a4d4cf5cf872e18d678476b76fe5ee83bafd0fa9 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 13 Feb 2006 10:59:22 +0000 Subject: Added the makecommaspecial() routine that completion uses when it is completing filenames into an open brace list. --- Src/utils.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Src') diff --git a/Src/utils.c b/Src/utils.c index dcaac9661..f076df61f 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -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 -- cgit 1.4.1