aboutsummaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
Diffstat (limited to 'driver')
-rw-r--r--driver/parser.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/driver/parser.go b/driver/parser.go
index e8d9968..dbebec3 100644
--- a/driver/parser.go
+++ b/driver/parser.go
@@ -394,9 +394,7 @@ type stateStack struct {
func (s *stateStack) enableExploratoryMode() {
s.itemsExp = make([]int, len(s.items))
- for i, v := range s.items {
- s.itemsExp[i] = v
- }
+ copy(s.itemsExp, s.items)
}
func (s *stateStack) disableExploratoryMode() {