aboutsummaryrefslogtreecommitdiffstats
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
commita769575e515a88eb883f056bc25104b6bb319ac0 (patch)
tree396bcfceade1d971ea893df904949a6351578386
parentaint easy (diff)
downloadhardflip-a769575e515a88eb883f056bc25104b6bb319ac0.tar.gz
hardflip-a769575e515a88eb883f056bc25104b6bb319ac0.tar.bz2
hardflip-a769575e515a88eb883f056bc25104b6bb319ac0.tar.xz
hardflip-a769575e515a88eb883f056bc25104b6bb319ac0.tar.zst
hardflip-a769575e515a88eb883f056bc25104b6bb319ac0.zip
how
-rw-r--r--i_ui.go7
1 files 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,