aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_ui.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-16 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-16 20:20:20 +0200
commit197d2a26bbc6418b31fd3e79a92fcd3c63cad3cc (patch)
tree5f1716d414bc061e35527dccc564d6c1ba00e8ec /src/i_ui.go
parentbetter, now msg buff hopefully (diff)
downloadhardflip-197d2a26bbc6418b31fd3e79a92fcd3c63cad3cc.tar.gz
hardflip-197d2a26bbc6418b31fd3e79a92fcd3c63cad3cc.tar.bz2
hardflip-197d2a26bbc6418b31fd3e79a92fcd3c63cad3cc.tar.xz
hardflip-197d2a26bbc6418b31fd3e79a92fcd3c63cad3cc.tar.zst
hardflip-197d2a26bbc6418b31fd3e79a92fcd3c63cad3cc.zip
fucking great readline
Diffstat (limited to '')
-rw-r--r--src/i_ui.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/i_ui.go b/src/i_ui.go
index 0eae586..5e3d180 100644
--- a/src/i_ui.go
+++ b/src/i_ui.go
@@ -53,6 +53,7 @@ package main
import (
"fmt"
+ "log"
"os"
"strconv"
@@ -74,6 +75,7 @@ type HardUI struct {
buff Buffer
drives_buff string
msg_buff string
+ match_buff string
insert_sel int
insert_sel_max int
insert_sel_ok bool
@@ -613,6 +615,13 @@ func i_draw_scrollhint(ui HardUI, litems *ItemsList) {
}
}
+func i_draw_match_buff(ui HardUI) {
+ log.Println("match_buff", ui.match_buff)
+ i_draw_msg(ui.s, 1, ui.style[BOX_STYLE], ui.dim, "")
+ i_draw_text(ui.s, 2, ui.dim[H] - 2 - 1, ui.dim[W] - 2, ui.dim[H] - 2 - 1,
+ ui.style[DEF_STYLE], ui.match_buff)
+}
+
var g_load_count int = -1
func i_draw_load_ui(ui *HardUI, opts HardOpts) {
@@ -792,6 +801,10 @@ func i_ui(data_dir string) {
case HELP_MODE:
i_draw_help(&data.ui)
}
+ if len(data.ui.match_buff) > 0 {
+ i_draw_match_buff(data.ui)
+ data.ui.match_buff = ""
+ }
data.ui.s.Show()
e_events(&data, fp)
}