aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_insert.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-08 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-08 20:20:20 +0200
commita113f3decb3c1ec22cac88051ccdd2ae24d759e4 (patch)
tree51989ae6039aec31587317dcc76b27c22b131b10 /src/i_insert.go
parentfix (diff)
downloadhardflip-a113f3decb3c1ec22cac88051ccdd2ae24d759e4.tar.gz
hardflip-a113f3decb3c1ec22cac88051ccdd2ae24d759e4.tar.bz2
hardflip-a113f3decb3c1ec22cac88051ccdd2ae24d759e4.tar.xz
hardflip-a113f3decb3c1ec22cac88051ccdd2ae24d759e4.tar.zst
hardflip-a113f3decb3c1ec22cac88051ccdd2ae24d759e4.zip
tmp
Diffstat (limited to '')
-rw-r--r--src/i_insert.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/i_insert.go b/src/i_insert.go
index b7c37b4..e556a9c 100644
--- a/src/i_insert.go
+++ b/src/i_insert.go
@@ -440,6 +440,10 @@ func i_draw_insert_inputs(ui HardUI, in *HostNode, home_dir string) {
}
}
+func i_insert_follow_cursor(ui *HardUI, line int) int {
+ return line - 15
+}
+
func i_draw_insert_panel(ui HardUI, in *HostNode, home_dir string) {
type draw_insert_func func(ui HardUI, line int, win Quad,
in *HostNode, home string) int
@@ -468,6 +472,7 @@ func i_draw_insert_panel(ui HardUI, in *HostNode, home_dir string) {
i_draw_insert_cmd,
i_draw_insert_os,
}
+ line = i_insert_follow_cursor(&ui, line)
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])