diff options
| author | Clint Adams <clint@users.sourceforge.net> | 2002-11-13 21:09:01 +0000 |
|---|---|---|
| committer | Clint Adams <clint@users.sourceforge.net> | 2002-11-13 21:09:01 +0000 |
| commit | e580d5d76782baa6862eb484e3e85bc5658e216f (patch) | |
| tree | b532e79175a14186de742e13df772bef1fdd6579 /Src/text.c | |
| parent | 17931: Philippe: restore blocking of SIGTERM in interactive shell (diff) | |
| download | zsh-e580d5d76782baa6862eb484e3e85bc5658e216f.tar zsh-e580d5d76782baa6862eb484e3e85bc5658e216f.tar.gz zsh-e580d5d76782baa6862eb484e3e85bc5658e216f.tar.bz2 zsh-e580d5d76782baa6862eb484e3e85bc5658e216f.tar.lz zsh-e580d5d76782baa6862eb484e3e85bc5658e216f.tar.xz zsh-e580d5d76782baa6862eb484e3e85bc5658e216f.tar.zst zsh-e580d5d76782baa6862eb484e3e85bc5658e216f.zip | |
17935: beautify bin_whence indentation of () and {} contents.
Diffstat (limited to 'Src/text.c')
| -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 6cb734af2..7405eaec0 100644 --- a/Src/text.c +++ b/Src/text.c @@ -345,27 +345,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; |
