aboutsummaryrefslogtreecommitdiff
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
parentac62ad2b1fc73ef912ddc32b3cc81ace8d00c7f6 (diff)
downloadzsh-6a8be0aff12eda886b3603e1f9331f788ad1636e.tar.gz
zsh-6a8be0aff12eda886b3603e1f9331f788ad1636e.tar.xz
zsh-6a8be0aff12eda886b3603e1f9331f788ad1636e.zip
18188: Output balanced parentheses in case statements
-rw-r--r--ChangeLog5
-rw-r--r--Src/text.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ea5ffaf57..115f6c7b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-04 Peter Stephenson <pws@csr.com>
+
+ * 18188: Src/text.c: make output case statements use balanced
+ parentheses.
+
2003-02-03 Peter Stephenson <pws@csr.com>
* 18175: Completion/Unix/Command/_p4: Completion for Perforce.
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++;