From 5e008c251cf0e91ca6cdf9d91faaaa4975636541 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 8 May 2024 08:26:11 +0200 Subject: fix: incorrect data shown for default and example option keys --- internal/search/search.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/search/search.go b/internal/search/search.go index 83a8365..b7640fc 100644 --- a/internal/search/search.go +++ b/internal/search/search.go @@ -69,6 +69,7 @@ func New[T options.NixOption](kind string) (*Index[T], error) { return nil, errors.WithMessage(err, "could not create struct decoder") } for mv := range dec.Stream() { + opt = options.NixOption{} err := ms.Decode(mv.Value) // stores in opt if err != nil { -- cgit 1.4.1