aboutsummaryrefslogtreecommitdiffstats
path: root/i_ui.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-27 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-27 20:20:20 +0100
commitb152d0fe07e75ff7a4303cadca25771e6237ca6c (patch)
treeabfb8a9ee7d23c7ddf037f8fa4a12b99305999b9 /i_ui.go
parenthow (diff)
downloadhardflip-b152d0fe07e75ff7a4303cadca25771e6237ca6c.tar.gz
hardflip-b152d0fe07e75ff7a4303cadca25771e6237ca6c.tar.bz2
hardflip-b152d0fe07e75ff7a4303cadca25771e6237ca6c.tar.xz
hardflip-b152d0fe07e75ff7a4303cadca25771e6237ca6c.tar.zst
hardflip-b152d0fe07e75ff7a4303cadca25771e6237ca6c.zip
not quite clean
Diffstat (limited to 'i_ui.go')
-rw-r--r--i_ui.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/i_ui.go b/i_ui.go
index e96ed04..87650b0 100644
--- a/i_ui.go
+++ b/i_ui.go
@@ -39,7 +39,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* hardflip: src/i_ui.go
- * Wed Dec 27 16:41:52 2023
+ * Wed Dec 27 18:19:37 2023
* Joe
*
* interfacing with the user
@@ -65,18 +65,17 @@ type HardUI struct {
dir_style tcell.Style
title_style tcell.Style
dim [2]int
- sel HardSelect
+ sel HardSelector
}
-type HardSelect struct {
+type HardSelector struct {
line int
dirs_ptr *DirsNode
host_ptr *HostNode
}
func (ui *HardUI) inc_sel(n int) {
- sel := &ui.sel
- sel.line += n
+ ui.sel.line += n
}
func i_draw_text(s tcell.Screen,