+3
-3
tui_list.go
+3
-3
tui_list.go
···
38
38
}
39
39
40
40
func (d itemDelegate) Render(w io.Writer, m list.Model, index int, listItem list.Item) {
41
+
// todo: print rfc title along with it's number
42
+
41
43
i, ok := listItem.(item)
42
44
if !ok {
43
45
return
44
46
}
45
-
46
-
str := fmt.Sprintf("%d. %s", index+1, i)
47
47
48
48
fn := itemStyle.Render
49
49
if index == m.Index() {
···
52
52
}
53
53
}
54
54
55
-
fmt.Fprint(w, fn(str))
55
+
fmt.Fprint(w, fn(string(i)))
56
56
}