From e80a5057ea66c1527c5fe766b1c3c50a710639d7 Mon Sep 17 00:00:00 2001 From: moson-mo Date: Tue, 2 Aug 2022 11:57:39 +0200 Subject: [PATCH] fix: package description bold text description text should be bold when line is wrapped Signed-off-by: moson-mo --- internal/pacseek/draw.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/pacseek/draw.go b/internal/pacseek/draw.go index 30c8582..2278e66 100644 --- a/internal/pacseek/draw.go +++ b/internal/pacseek/draw.go @@ -209,6 +209,9 @@ func (ps *UI) drawPackageInfo(i InfoRecord, width int) { Color: tcell.ColorWhite, BackgroundColor: tcell.ColorBlack, } + if k == "Description" { + cell.Text = "[::b]" + l + } if strings.Contains(k, "URL") { cell.SetClickedFunc(func() bool { exec.Command("xdg-open", v).Run() @@ -382,7 +385,7 @@ func (ps *UI) getDetailFields(i InfoRecord) (map[string]string, []string) { } fields := map[string]string{} - fields[order[0]] = "[::b]" + i.Description + fields[order[0]] = i.Description fields[order[1]] = i.Version fields[order[2]] = strings.Join(i.Provides, ", ") fields[order[3]] = strings.Join(i.Conflicts, ", ")