aboutsummaryrefslogtreecommitdiffstats
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
parentgogoooooooooooooooooooooooooooooooooooo (diff)
downloadhardflip-0e04dee680b90e4c55f8591d0959934b59993a63.tar.gz
hardflip-0e04dee680b90e4c55f8591d0959934b59993a63.tar.bz2
hardflip-0e04dee680b90e4c55f8591d0959934b59993a63.tar.xz
hardflip-0e04dee680b90e4c55f8591d0959934b59993a63.tar.zst
hardflip-0e04dee680b90e4c55f8591d0959934b59993a63.zip
gg
-rw-r--r--src/e_keys.go5
-rw-r--r--src/i_help.go3
2 files changed, 7 insertions, 1 deletions
diff --git a/src/e_keys.go b/src/e_keys.go
index db38df8..3fe9d6c 100644
--- a/src/e_keys.go
+++ b/src/e_keys.go
@@ -856,7 +856,10 @@ func e_help_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
} else if event.Rune() == 'g' {
ui.help_scroll = 0
} else if event.Rune() == 'G' {
- // TODO: here
+ for ui.help_end != true {
+ ui.help_scroll += 1
+ i_draw_help(ui)
+ }
}
return false
}
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],