about summary refs log tree commit diff
path: root/Src/text.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-02-04 11:23:01 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-02-04 11:23:01 +0000
commit6a8be0aff12eda886b3603e1f9331f788ad1636e (patch)
tree1c662a579cccfbaa26e8f88eb1617e1e16300052 /Src/text.c
parentac62ad2b1fc73ef912ddc32b3cc81ace8d00c7f6 (diff)
downloadzsh-6a8be0aff12eda886b3603e1f9331f788ad1636e.tar.gz
zsh-6a8be0aff12eda886b3603e1f9331f788ad1636e.tar.xz
zsh-6a8be0aff12eda886b3603e1f9331f788ad1636e.zip
18188: Output balanced parentheses in case statements
Diffstat (limited to 'Src/text.c')
-rw-r--r--Src/text.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/text.c b/Src/text.c
index 7405eaec0..794a04df9 100644
--- a/Src/text.c
+++ b/Src/text.c
@@ -521,6 +521,7 @@ gettext2(Estate state)
 			taddnl();
 		    else
 			taddchr(' ');
+		    taddstr("(");
 		    code = *state->pc++;
 		    taddstr(ecgetstr(state, EC_NODUP, NULL));
 		    state->pc++;
@@ -537,6 +538,7 @@ gettext2(Estate state)
 		    taddnl();
 		else
 		    taddchr(' ');
+		taddstr("(");
 		code = *state->pc++;
 		taddstr(ecgetstr(state, EC_NODUP, NULL));
 		state->pc++;