From 0e04dee680b90e4c55f8591d0959934b59993a63 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 13 May 2024 20:20:20 +0200 Subject: gg --- src/i_help.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/i_help.go') diff --git a/src/i_help.go b/src/i_help.go index c022012..c13b0b7 100644 --- a/src/i_help.go +++ b/src/i_help.go @@ -61,6 +61,9 @@ func i_draw_help(ui *HardUI) { ui.dim[W] - 6, ui.dim[H] - 3, } + if win.B > win.T + len(HELP_NORMAL_KEYS) + 1 { + win.B = win.T + len(HELP_NORMAL_KEYS) + 1 + } i_draw_box(ui.s, win.L, win.T, win.R, win.B, ui.style[BOX_STYLE], ui.style[HEAD_STYLE], -- cgit v1.2.3