<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/main/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'main/command.go')
-rw-r--r--main/command.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/command.go b/main/command.go
index e795333..bbbb036 100644
--- a/main/command.go
+++ b/main/command.go
@@ -143,10 +143,14 @@ type FullMergeCommand struct {
}
func (cmd FullMergeCommand) exec(state *ProgramState) {
_, notOk := runSubex(cmd.subex, state.value)
- if notOk || state.end {
+ if notOk {
state.pc++
return
}
+ if !state.start {
+ state.pc += 2
+ return
+ }
for {
item, err := state.Read()