From d17cd003ed4ddf2da6f52ee031299d878c319702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Tue, 4 Sep 2018 20:06:26 +0200 Subject: [PATCH] bug: also update the operations incrementaly in the snapshot fix #39 --- bug/with_snapshot.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bug/with_snapshot.go b/bug/with_snapshot.go index 0aa3b37d8d63e61b910d6031810edd81fc35752c..a004324b820f10ed8ec0d5a19ed253fd678bf392 100644 --- a/bug/with_snapshot.go +++ b/bug/with_snapshot.go @@ -28,6 +28,8 @@ func (b *WithSnapshot) Append(op Operation) { } snap := op.Apply(*b.snap) + snap.Operations = append(snap.Operations, op) + b.snap = &snap }