diff options
author | Joe <rbo@gmx.us> | 2024-05-16 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-05-16 20:20:20 +0200 |
commit | 3cb09ad3ddeb6386d4281d8438b85d90f9fd2bbd (patch) | |
tree | 655faa2d3b45ded0b9428ff7f64f13c1a6090230 | |
parent | hey this might even work (diff) | |
download | hardflip-3cb09ad3ddeb6386d4281d8438b85d90f9fd2bbd.tar.gz hardflip-3cb09ad3ddeb6386d4281d8438b85d90f9fd2bbd.tar.bz2 hardflip-3cb09ad3ddeb6386d4281d8438b85d90f9fd2bbd.tar.xz hardflip-3cb09ad3ddeb6386d4281d8438b85d90f9fd2bbd.tar.zst hardflip-3cb09ad3ddeb6386d4281d8438b85d90f9fd2bbd.zip |
turned out to be a simple fix
-rw-r--r-- | src/i_insert.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i_insert.go b/src/i_insert.go index ea666fe..1202a64 100644 --- a/src/i_insert.go +++ b/src/i_insert.go @@ -53,6 +53,7 @@ package main import ( "errors" + "log" "os" "path/filepath" "regexp" @@ -472,9 +473,8 @@ func i_draw_insert_panel(ui *HardUI, in *HostNode, home_dir string) { ui.style[BOX_STYLE], ui.style[HEAD_STYLE], " Insert - " + in.Name + " ", true) line := i_insert_follow_cursor(ui.insert_scroll, 2) - if line + 2 < win.T { + if line <= 0 { ui.s.SetContent(ui.dim[W] / 2, win.T, '▲', nil, ui.style[BOX_STYLE]) - // FIX: shows in fullscreen for some reason } if win.T + line >= win.B { return } i_draw_text_box(ui, win.T + line, win, |