mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Fix line highlighting in HackerNews and Todo modules
This commit is contained in:
parent
75f3e8f998
commit
4e8c85bc34
@ -114,7 +114,7 @@ func (widget *Widget) contentFrom(stories []Story) string {
|
||||
for idx, story := range stories {
|
||||
u, _ := url.Parse(story.URL)
|
||||
str = str + fmt.Sprintf(
|
||||
`["%d"][%s] [yellow]%d. [%s]%s [blue](%s)[""]`,
|
||||
`["%d"][""][%s] [yellow]%d. [%s]%s [blue](%s)[""]`,
|
||||
idx,
|
||||
widget.rowColor(idx),
|
||||
idx+1,
|
||||
|
@ -52,7 +52,7 @@ func (widget *Widget) formattedItemLine(idx int, item *checklist.ChecklistItem,
|
||||
}
|
||||
|
||||
str := fmt.Sprintf(
|
||||
`["%d"][%s:%s]|%s| %s[white][""]`,
|
||||
`["%d"][""][%s:%s]|%s| %s[white][""]`,
|
||||
idx,
|
||||
foreColor,
|
||||
backColor,
|
||||
|
Loading…
x
Reference in New Issue
Block a user