diff --git a/ast.go b/ast.go index 85a6982..46d338f 100644 --- a/ast.go +++ b/ast.go @@ -115,6 +115,7 @@ func executeCmd(cmd *Command) error { } } } + delete(Vars, *RptLoop.IndexVar) } } return nil