mirror of
https://github.com/zsh-users/zsh
synced 2024-07-21 10:14:19 +00:00
18188: Output balanced parentheses in case statements
This commit is contained in:
parent
ac62ad2b1f
commit
6a8be0aff1
|
@ -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>
|
2003-02-03 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
* 18175: Completion/Unix/Command/_p4: Completion for Perforce.
|
* 18175: Completion/Unix/Command/_p4: Completion for Perforce.
|
||||||
|
|
|
@ -521,6 +521,7 @@ gettext2(Estate state)
|
||||||
taddnl();
|
taddnl();
|
||||||
else
|
else
|
||||||
taddchr(' ');
|
taddchr(' ');
|
||||||
|
taddstr("(");
|
||||||
code = *state->pc++;
|
code = *state->pc++;
|
||||||
taddstr(ecgetstr(state, EC_NODUP, NULL));
|
taddstr(ecgetstr(state, EC_NODUP, NULL));
|
||||||
state->pc++;
|
state->pc++;
|
||||||
|
@ -537,6 +538,7 @@ gettext2(Estate state)
|
||||||
taddnl();
|
taddnl();
|
||||||
else
|
else
|
||||||
taddchr(' ');
|
taddchr(' ');
|
||||||
|
taddstr("(");
|
||||||
code = *state->pc++;
|
code = *state->pc++;
|
||||||
taddstr(ecgetstr(state, EC_NODUP, NULL));
|
taddstr(ecgetstr(state, EC_NODUP, NULL));
|
||||||
state->pc++;
|
state->pc++;
|
||||||
|
|
Loading…
Reference in a new issue