From b152d0fe07e75ff7a4303cadca25771e6237ca6c Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 27 Dec 2023 20:20:20 +0100 Subject: not quite clean --- i_ui.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'i_ui.go') 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, -- cgit v1.2.3