aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_help.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-13 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-13 20:20:20 +0200
commit0e04dee680b90e4c55f8591d0959934b59993a63 (patch)
treec15d2669d7e1ce82554689c35511bf7025606db3 /src/i_help.go
parentgogoooooooooooooooooooooooooooooooooooo (diff)
downloadhardflip-0e04dee680b90e4c55f8591d0959934b59993a63.tar.gz
hardflip-0e04dee680b90e4c55f8591d0959934b59993a63.tar.bz2
hardflip-0e04dee680b90e4c55f8591d0959934b59993a63.tar.xz
hardflip-0e04dee680b90e4c55f8591d0959934b59993a63.tar.zst
hardflip-0e04dee680b90e4c55f8591d0959934b59993a63.zip
gg
Diffstat (limited to 'src/i_help.go')
-rw-r--r--src/i_help.go3
1 files changed, 3 insertions, 0 deletions
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],