From 2c59bb2a76284bd37d4df40ab2966d233c742977 Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Tue, 18 Apr 2023 16:00:21 +0100 Subject: 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 --- subex/subexstate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subex') 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 -- cgit v1.2.3