diff options
Diffstat (limited to 'i_ui.go')
-rw-r--r-- | i_ui.go | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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, |