We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50fff78 commit 8779ef6Copy full SHA for 8779ef6
choose/choose.go
@@ -253,10 +253,14 @@ func (m model) View() string {
253
s.WriteString(strings.Repeat(" ", lipgloss.Width(m.cursor)))
254
}
255
256
- if item.selected {
+ if i == m.index%m.height {
257
+ if item.selected {
258
+ s.WriteString(m.cursorStyle.Render(m.selectedPrefix + item.text))
259
+ } else {
260
+ s.WriteString(m.cursorStyle.Render(m.cursorPrefix + item.text))
261
+ }
262
+ } else if item.selected {
263
s.WriteString(m.selectedItemStyle.Render(m.selectedPrefix + item.text))
- } else if i == m.index%m.height {
- s.WriteString(m.cursorStyle.Render(m.cursorPrefix + item.text))
264
} else {
265
s.WriteString(m.itemStyle.Render(m.unselectedPrefix + item.text))
266
0 commit comments