aboutsummaryrefslogtreecommitdiffstats
path: root/i_ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'i_ui.go')
-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,