From 3cb09ad3ddeb6386d4281d8438b85d90f9fd2bbd Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 16 May 2024 20:20:20 +0200 Subject: turned out to be a simple fix --- src/i_insert.go | 4 ++-- 1 file 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, -- cgit v1.2.3