diff --git a/main.go b/main.go index 2448ab3..624982c 100644 --- a/main.go +++ b/main.go @@ -134,6 +134,8 @@ func main() { case *tcell.EventResize: screen.Sync() // TODO: Handle redrawing the keys when resizing vertically + _, height := screen.Size() + showEnd = min(height-2, len(filteredKeys)) case *tcell.EventKey: switch ev.Key() { case tcell.KeyEscape, tcell.KeyCtrlC: