Searcher size

This commit is contained in:
2025-08-14 14:47:55 -05:00
parent acfe8be93d
commit 061bf1b37d
2 changed files with 24 additions and 3 deletions

View File

@@ -175,7 +175,8 @@ func (w *Searcher) Draw(screen tcell.Screen) {
}
dStyle := w.style.Dim(!w.active)
if len(w.title) > 0 {
wh.TitledBorderFilled(w.x, w.y, w.x+w.w, w.y+w.h, w.title, wh.BRD_CSIMPLE, dStyle, screen)
wh.TitledBorderFilled(w.x, w.y, w.x+w.w, w.y+w.h-1, w.title, wh.BRD_CSIMPLE, dStyle, screen)
// w.Log("Searcher<%s> Bounds: %d,%d -> %d,%d", w.Id(), w.x, w.y, w.x+w.w, w.y+w.h)
} else {
wh.BorderFilled(w.x, w.y, w.x+w.w, w.y+w.h, wh.BRD_CSIMPLE, dStyle, screen)
}
@@ -197,7 +198,7 @@ func (w *Searcher) Draw(screen tcell.Screen) {
}
wh.DrawText(x, y, w.filteredData[i], st, screen)
y++
if y >= w.y+w.h {
if y >= w.y+w.h-1 {
break
}
}