all repos — searchix @ 5e008c251cf0e91ca6cdf9d91faaaa4975636541

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: incorrect data shown for default and example option keys
Alan Pearce alan@alanpearce.eu
Wed, 08 May 2024 08:26:11 +0200
commit

5e008c251cf0e91ca6cdf9d91faaaa4975636541

parent

973345ad50f9b237714fcb364cf7f665b3909f9d

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M internal/search/search.gointernal/search/search.go
@@ -69,6 +69,7 @@ if err != nil { 		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 {