From 57252dc1e0b9f3b67189ac4957e51c31ee156ff6 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Thu, 2 Oct 2014 08:39:43 -0700 Subject: 33320 (cf. PWS 33311): revert 33069, fix lexing of bangchar during completion add typtab_flags bits (replaces specialcomma boolean) to record any unusual handling of typtab entries; signal safety; make bangchar non-special during completion lexing of the command line. --- Src/Zle/compcore.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src/Zle/compcore.c') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index ac7785ab7..35d410cc6 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -702,6 +702,7 @@ callcompfunc(char *s, char *fn) } zsfree(compprefix); zsfree(compsuffix); + makebangspecial(0); if (unset(COMPLETEINWORD)) { tmp = (linwhat == IN_MATH ? dupstring(s) : multiquote(s, 0)); untokenize(tmp); @@ -722,6 +723,7 @@ callcompfunc(char *s, char *fn) untokenize(ss); compsuffix = ztrdup(ss); } + makebangspecial(1); zsfree(complastprefix); zsfree(complastsuffix); complastprefix = ztrdup(compprefix); -- cgit 1.4.1