about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-02 08:58:43 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-02 08:58:43 +0000
commitd8e90f0efee5a9ddd62a07813efba2ca397de40a (patch)
tree0034e73d3b0b4f6cec2b488bae2b2770c1cf86a8 /Src
parent40a295bdf91392ffff3eb59a317ecf76bb51ae3e (diff)
downloadzsh-d8e90f0efee5a9ddd62a07813efba2ca397de40a.tar.gz
zsh-d8e90f0efee5a9ddd62a07813efba2ca397de40a.tar.xz
zsh-d8e90f0efee5a9ddd62a07813efba2ca397de40a.zip
zsh-workers/9524
Diffstat (limited to 'Src')
-rw-r--r--Src/text.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/text.c b/Src/text.c
index fc5a2a5c7..730d3ea53 100644
--- a/Src/text.c
+++ b/Src/text.c
@@ -182,6 +182,7 @@ struct tstack {
 	} _redir;
 	struct {
 	    char *strs;
+	    Wordcode end;
 	} _funcdef;
 	struct {
 	    Wordcode end;
@@ -372,11 +373,13 @@ gettext2(Estate state)
 		    taddnl();
 		    n = tpush(code, 1);
 		    n->u._funcdef.strs = state->strs;
+		    n->u._funcdef.end = end;
 		    state->strs = (char *) (p + (*state->pc));
 		    state->pc += 2;
 		}
 	    } else {
 		state->strs = s->u._funcdef.strs;
+		state->pc = s->u._funcdef.end;
 		tindent--;
 		taddnl();
 		taddstr("}");