about summary refs log tree commit diff
path: root/Src/loop.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-03-13 17:03:31 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-03-13 17:03:31 +0000
commitd7e3ef40ec5b99676d7f33f501c8f3b59446a938 (patch)
tree8a2c546b09e1ca36958d51be4c5a405a2eeb77c1 /Src/loop.c
parent1dbb0b4247592c0bd4d135693e86c3a20b823037 (diff)
downloadzsh-d7e3ef40ec5b99676d7f33f501c8f3b59446a938.tar.gz
zsh-d7e3ef40ec5b99676d7f33f501c8f3b59446a938.tar.xz
zsh-d7e3ef40ec5b99676d7f33f501c8f3b59446a938.zip
zsh-workers/10120
Diffstat (limited to 'Src/loop.c')
-rw-r--r--Src/loop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/loop.c b/Src/loop.c
index b1edb22c4..668f47b97 100644
--- a/Src/loop.c
+++ b/Src/loop.c
@@ -171,6 +171,7 @@ execfor(Estate state, int do_exec)
     popheap();
     cmdpop();
     loops--;
+    state->pc = end;
     return lastval;
 }
 
@@ -394,6 +395,7 @@ execwhile(Estate state, int do_exec)
     cmdpop();
     popheap();
     loops--;
+    state->pc = end;
     return lastval;
 }