From 1a153930015fb657dc7033ad52676f890f41c887 Mon Sep 17 00:00:00 2001 From: Arvid Bjurklint Date: Mon, 12 Aug 2024 22:15:50 +0200 Subject: [PATCH] Partially handle vertical resize --- main.go | 2 ++ 1 file changed, 2 insertions(+) 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: