about summary refs log tree commit diff
path: root/Src/lex.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-12-08 19:42:07 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-12-08 19:42:07 +0000
commite3182c18de8f84c2d7eb003f9c731ada5e9a591f (patch)
tree3ed57c8e61518c8ad98e93e4961b7b881237e0c6 /Src/lex.c
parent22aede45f67161c6332e52c42e04df45a3e62164 (diff)
downloadzsh-e3182c18de8f84c2d7eb003f9c731ada5e9a591f.tar.gz
zsh-e3182c18de8f84c2d7eb003f9c731ada5e9a591f.tar.xz
zsh-e3182c18de8f84c2d7eb003f9c731ada5e9a591f.zip
29955++: IGNORE_CLOSE_BRACES option
Diffstat (limited to 'Src/lex.c')
-rw-r--r--Src/lex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/lex.c b/Src/lex.c
index 05f54f842..1cf3611c9 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -1857,7 +1857,8 @@ exalias(void)
 
 	    /* Then check for a reserved word */
 	    if ((incmdpos ||
-		 (unset(IGNOREBRACES) && zshlextext[0] == '}' && !zshlextext[1])) &&
+		 (unset(IGNOREBRACES) && unset(IGNORECLOSEBRACES) &&
+		  zshlextext[0] == '}' && !zshlextext[1])) &&
 		(rw = (Reswd) reswdtab->getnode(reswdtab, zshlextext))) {
 		tok = rw->token;
 		if (tok == DINBRACK)