This commit is contained in:
2025-11-15 14:43:52 -06:00
parent 4b179ba2f5
commit 197df3e029
3 changed files with 151 additions and 1 deletions

View File

@@ -229,7 +229,7 @@ func (w *Searcher) oldDraw(screen tcell.Screen) {
if w.cursor+w.h/2 > fD {
stIdx = fD - w.h/2
}
stIdx = wh.Max(stIdx, 0)
stIdx = wh.Max(0, wh.Min(stIdx, len(w.filteredData)-(w.h-3)))
for i := stIdx; i < fD; i++ {
st := dStyle
if i == w.cursor {