mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-10 22:31:24 +02:00
zsh-workers/10179
This commit is contained in:
parent
9f883c9b77
commit
477e1b4004
1 changed files with 9 additions and 2 deletions
11
Src/text.c
11
Src/text.c
|
@ -194,6 +194,9 @@ struct tstack {
|
||||||
struct {
|
struct {
|
||||||
int par;
|
int par;
|
||||||
} _cond;
|
} _cond;
|
||||||
|
struct {
|
||||||
|
Wordcode end;
|
||||||
|
} _subsh;
|
||||||
} u;
|
} u;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -329,8 +332,10 @@ gettext2(Estate state)
|
||||||
if (!s) {
|
if (!s) {
|
||||||
taddstr("( ");
|
taddstr("( ");
|
||||||
tindent++;
|
tindent++;
|
||||||
tpush(code, 1);
|
n = tpush(code, 1);
|
||||||
|
n->u._subsh.end = state->pc + WC_SUBSH_SKIP(code);
|
||||||
} else {
|
} else {
|
||||||
|
state->pc = s->u._subsh.end;
|
||||||
tindent--;
|
tindent--;
|
||||||
taddstr(" )");
|
taddstr(" )");
|
||||||
stack = 1;
|
stack = 1;
|
||||||
|
@ -340,8 +345,10 @@ gettext2(Estate state)
|
||||||
if (!s) {
|
if (!s) {
|
||||||
taddstr("{ ");
|
taddstr("{ ");
|
||||||
tindent++;
|
tindent++;
|
||||||
tpush(code, 1);
|
n = tpush(code, 1);
|
||||||
|
n->u._subsh.end = state->pc + WC_CURSH_SKIP(code);
|
||||||
} else {
|
} else {
|
||||||
|
state->pc = s->u._subsh.end;
|
||||||
tindent--;
|
tindent--;
|
||||||
taddstr(" }");
|
taddstr(" }");
|
||||||
stack = 1;
|
stack = 1;
|
||||||
|
|
Loading…
Reference in a new issue