From 5b01a93d6242083f3d70213f17dbdf72bda42b57 Mon Sep 17 00:00:00 2001 From: Chris Waldon Date: Wed, 19 Feb 2020 22:31:02 -0500 Subject: [PATCH] bugfix: insert new nodes into grove path, not cwd --- history_widget.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/history_widget.go b/history_widget.go index 385a079..aad9f38 100644 --- a/history_widget.go +++ b/history_widget.go @@ -279,10 +279,10 @@ func (v *HistoryWidget) FinishReplyString(parent forest.Node, content string) er if err != nil { return fmt.Errorf("failed creating reply: %w", err) } - outfile := reply.ID().String() - err = saveAs(outfile, reply) + + err = v.Add(reply) if err != nil { - return fmt.Errorf("failed saving reply to disk: %w", err) + return fmt.Errorf("failed saving reply into store: %w", err) } return nil }