This commit is contained in:
2025-08-28 11:20:11 -05:00
parent f41e583089
commit c1db729bb3
2 changed files with 32 additions and 46 deletions

View File

@@ -235,7 +235,7 @@ func (w *List) SetItem(idx int, txt string) {
w.list[idx] = txt
}
}
func (w *List) GetIdx() int { return w.cursor }
func (w *List) SelectedIndex() int { return w.cursor }
func (w *List) ClearBorder() { w.border = []rune{} }
func (w *List) SetOnSelect(s func(int, string) bool) { w.onSelect = s }
func (w *List) SetVimMode(b bool) { w.vimMode = b }