diff options
author | Joe <rbo@gmx.us> | 2024-05-13 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-05-13 20:20:20 +0200 |
commit | 51a93f43affa62db99beb3d471746127696f35dc (patch) | |
tree | 2b33c6df8238ff4ba56efe189d1d3dcd40512a8c /src | |
parent | go (diff) | |
download | hardflip-51a93f43affa62db99beb3d471746127696f35dc.tar.gz hardflip-51a93f43affa62db99beb3d471746127696f35dc.tar.bz2 hardflip-51a93f43affa62db99beb3d471746127696f35dc.tar.xz hardflip-51a93f43affa62db99beb3d471746127696f35dc.tar.zst hardflip-51a93f43affa62db99beb3d471746127696f35dc.zip |
k
Diffstat (limited to 'src')
-rw-r--r-- | src/i_help.go | 3 | ||||
-rw-r--r-- | src/i_insert.go | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/i_help.go b/src/i_help.go index fa3852f..a96709c 100644 --- a/src/i_help.go +++ b/src/i_help.go @@ -79,6 +79,9 @@ func i_draw_help(ui *HardUI) { ui.s.SetContent(win.L, win.B - 1, '▼', nil, ui.style[BOX_STYLE]) } + text := " hardflip " + VERSION + " - " + VERSION_NAME + " " + i_draw_text(ui.s, win.R - 1 - len(text), + win.B, win.R - 1, win.B, ui.style[DEF_STYLE], text) } func i_help_normal(ui HardUI, win Quad, line *int) bool { diff --git a/src/i_insert.go b/src/i_insert.go index 09e1537..ea666fe 100644 --- a/src/i_insert.go +++ b/src/i_insert.go @@ -473,8 +473,8 @@ func i_draw_insert_panel(ui *HardUI, in *HostNode, home_dir string) { " Insert - " + in.Name + " ", true) line := i_insert_follow_cursor(ui.insert_scroll, 2) if line + 2 < win.T { - ui.s.SetContent(ui.dim[W] / 2, win.T, '▲', - nil, ui.style[BOX_STYLE]) + 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, @@ -490,8 +490,7 @@ func i_draw_insert_panel(ui *HardUI, in *HostNode, home_dir string) { ui.insert_butt = false end_line = fp[in.Protocol](ui, line, win, in, home_dir) if win.T + end_line >= win.B { - ui.s.SetContent(ui.dim[W] / 2, win.B, '▼', - nil, ui.style[BOX_STYLE]) + ui.s.SetContent(ui.dim[W] / 2, win.B, '▼', nil, ui.style[BOX_STYLE]) } i_draw_insert_inputs(*ui, in, home_dir) } |