From a769575e515a88eb883f056bc25104b6bb319ac0 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 27 Dec 2023 20:20:20 +0100 Subject: how --- i_ui.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/i_ui.go b/i_ui.go index 727afbd..e96ed04 100644 --- a/i_ui.go +++ b/i_ui.go @@ -74,12 +74,9 @@ type HardSelect struct { host_ptr *HostNode } -func (ui *HardUI) inc_sel(n ...int) { +func (ui *HardUI) inc_sel(n int) { sel := &ui.sel - if n[0] == 0 { - n[0] = 1 - } - sel.line += n[0] + sel.line += n } func i_draw_text(s tcell.Screen, -- cgit v1.2.3