Skip to content

Commit

Permalink
fix: package description bold text
Browse files Browse the repository at this point in the history
description text should be bold when line is wrapped

Signed-off-by: moson-mo <mo-son@mailbox.org>
  • Loading branch information
moson-mo committed Aug 2, 2022
1 parent eb801d7 commit e80a505
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/pacseek/draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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, ", ")
Expand Down

0 comments on commit e80a505

Please sign in to comment.