about summary refs log tree commit diff
path: root/Src/text.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-03-25 00:21:44 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-03-25 00:21:44 +0000
commitd8f703027345170c7bc820ed7808e693dd1377d6 (patch)
treef9b1b6ad59f19577c0e1c5b6357cb869b4bebfba /Src/text.c
parentd770c43f14ef6e559aa16da1c1408e006bb2a137 (diff)
downloadzsh-d8f703027345170c7bc820ed7808e693dd1377d6.tar.gz
zsh-d8f703027345170c7bc820ed7808e693dd1377d6.tar.xz
zsh-d8f703027345170c7bc820ed7808e693dd1377d6.zip
zsh-3.1.6-dev-20 zsh-3.1.6-dev-20
Diffstat (limited to 'Src/text.c')
-rw-r--r--Src/text.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/Src/text.c b/Src/text.c
index c148423b8..32fcbf35b 100644
--- a/Src/text.c
+++ b/Src/text.c
@@ -122,7 +122,8 @@ getpermtext(Eprog prog, Wordcode c)
     tlim = tbuf + tsiz;
     tindent = 1;
     tjob = 0;
-    gettext2(&s);
+    if (prog->len)
+	gettext2(&s);
     *tptr = '\0';
     untokenize(tbuf);
     return tbuf;
@@ -194,9 +195,6 @@ struct tstack {
 	struct {
 	    int par;
 	} _cond;
-	struct {
-	    Wordcode end;
-	} _subsh;
     } u;
 };
 
@@ -332,10 +330,8 @@ gettext2(Estate state)
 	    if (!s) {
 		taddstr("( ");
 		tindent++;
-		n = tpush(code, 1);
-		n->u._subsh.end = state->pc + WC_SUBSH_SKIP(code);
+		tpush(code, 1);
 	    } else {
-		state->pc = s->u._subsh.end;
 		tindent--;
 		taddstr(" )");
 		stack = 1;
@@ -345,10 +341,8 @@ gettext2(Estate state)
 	    if (!s) {
 		taddstr("{ ");
 		tindent++;
-		n = tpush(code, 1);
-		n->u._subsh.end = state->pc + WC_CURSH_SKIP(code);
+		tpush(code, 1);
 	    } else {
-		state->pc = s->u._subsh.end;
 		tindent--;
 		taddstr(" }");
 		stack = 1;