diff --git a/main.go b/main.go index 41bd81c..2529ab2 100644 --- a/main.go +++ b/main.go @@ -82,17 +82,18 @@ func main() { choices, err := fuzzyfinder.FindMulti( result.Query.Search, func(i int) string { return result.Query.Search[i].Title }, - fuzzyfinder.WithPreviewWindow(func(i, w, h int) string { - if i == -1 { - return "" - } - return fmt.Sprintf( - "%s\n\n%s\n\n%s", - result.Query.Search[i].Title, - runewidth.Wrap(result.Query.Search[i].Snippet, w), - humanize.Time(result.Query.Search[i].Timestamp), - ) - }, + fuzzyfinder.WithPreviewWindow( + func(i, w, h int) string { + if i == -1 { + return "" + } + return fmt.Sprintf( + "%s\n\n%s\n\n%s", + result.Query.Search[i].Title, + runewidth.Wrap(result.Query.Search[i].Snippet, w), + humanize.Time(result.Query.Search[i].Timestamp), + ) + }, ), )