diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 |