diff options
author | Clint Adams <clint@users.sourceforge.net> | 2002-11-13 21:11:22 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2002-11-13 21:11:22 +0000 |
commit | 9671d37b55f32e3958a3ba3d2f74651347a31219 (patch) | |
tree | 1fd8de974c905ad5e95e59a4ecbcf435622dee12 /Src | |
parent | 2cb56b9151a9115a952df7e8dd81881ca3e106fb (diff) | |
download | zsh-9671d37b55f32e3958a3ba3d2f74651347a31219.tar.gz zsh-9671d37b55f32e3958a3ba3d2f74651347a31219.tar.xz zsh-9671d37b55f32e3958a3ba3d2f74651347a31219.zip |
17935: beautify bin_whence indentation of () and {} contents.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/text.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Src/text.c b/Src/text.c index d23cccdf6..5084e4558 100644 --- a/Src/text.c +++ b/Src/text.c @@ -339,27 +339,31 @@ gettext2(Estate state) break; case WC_SUBSH: if (!s) { - taddstr("( "); + taddstr("("); tindent++; + taddnl(); n = tpush(code, 1); n->u._subsh.end = state->pc + WC_SUBSH_SKIP(code); } else { state->pc = s->u._subsh.end; tindent--; - taddstr(" )"); + taddnl(); + taddstr(")"); stack = 1; } break; case WC_CURSH: if (!s) { - taddstr("{ "); + taddstr("{"); tindent++; + taddnl(); n = tpush(code, 1); n->u._subsh.end = state->pc + WC_CURSH_SKIP(code); } else { state->pc = s->u._subsh.end; tindent--; - taddstr(" }"); + taddnl(); + taddstr("}"); stack = 1; } break; |