1
0
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:
Chris Cummer 2019-05-09 19:27:53 -07:00
parent 75f3e8f998
commit 4e8c85bc34
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ func (widget *Widget) contentFrom(stories []Story) string {
for idx, story := range stories { for idx, story := range stories {
u, _ := url.Parse(story.URL) u, _ := url.Parse(story.URL)
str = str + fmt.Sprintf( str = str + fmt.Sprintf(
`["%d"][%s] [yellow]%d. [%s]%s [blue](%s)[""]`, `["%d"][""][%s] [yellow]%d. [%s]%s [blue](%s)[""]`,
idx, idx,
widget.rowColor(idx), widget.rowColor(idx),
idx+1, idx+1,

View File

@ -52,7 +52,7 @@ func (widget *Widget) formattedItemLine(idx int, item *checklist.ChecklistItem,
} }
str := fmt.Sprintf( str := fmt.Sprintf(
`["%d"][%s:%s]|%s| %s[white][""]`, `["%d"][""][%s:%s]|%s| %s[white][""]`,
idx, idx,
foreColor, foreColor,
backColor, backColor,