diff options
author | Joe <rbo@gmx.us> | 2023-12-27 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2023-12-27 20:20:20 +0100 |
commit | a769575e515a88eb883f056bc25104b6bb319ac0 (patch) | |
tree | 396bcfceade1d971ea893df904949a6351578386 | |
parent | aint easy (diff) | |
download | hardflip-a769575e515a88eb883f056bc25104b6bb319ac0.tar.gz hardflip-a769575e515a88eb883f056bc25104b6bb319ac0.tar.bz2 hardflip-a769575e515a88eb883f056bc25104b6bb319ac0.tar.xz hardflip-a769575e515a88eb883f056bc25104b6bb319ac0.tar.zst hardflip-a769575e515a88eb883f056bc25104b6bb319ac0.zip |
how
-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, |