<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/subex
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-04-18 16:00:21 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2023-04-18 16:00:21 +0100
commit2c59bb2a76284bd37d4df40ab2966d233c742977 (patch)
tree8f4e243db7c45582335d2fd81a5bc0784e8c698c /subex
parentffd1b73b4f3294d9f3aa2ed600da3ba053aeb47c (diff)
downloadstred-go-2c59bb2a76284bd37d4df40ab2966d233c742977.tar
Fixes bug where stores wouldn't work inside other stores sometimes
Something like $a($b(test)..."$b") wouldn't work as expected, this works now
Diffstat (limited to 'subex')
-rw-r--r--subex/subexstate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/subex/subexstate.go b/subex/subexstate.go
index cbcd210..f027f78 100644
--- a/subex/subexstate.go
+++ b/subex/subexstate.go
@@ -48,7 +48,7 @@ func (state SubexStoreState) eat(store Store, char walk.Atom) (nextStates []Sube
toStore: walk.ConcatData(state.toStore, matchState.output),
},
output: nil,
- store: store.clone(),
+ store: matchState.store,
})
}
return nextStates