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 | b152d0fe07e75ff7a4303cadca25771e6237ca6c (patch) | |
tree | abfb8a9ee7d23c7ddf037f8fa4a12b99305999b9 /i_ui.go | |
parent | how (diff) | |
download | hardflip-b152d0fe07e75ff7a4303cadca25771e6237ca6c.tar.gz hardflip-b152d0fe07e75ff7a4303cadca25771e6237ca6c.tar.bz2 hardflip-b152d0fe07e75ff7a4303cadca25771e6237ca6c.tar.xz hardflip-b152d0fe07e75ff7a4303cadca25771e6237ca6c.tar.zst hardflip-b152d0fe07e75ff7a4303cadca25771e6237ca6c.zip |
not quite clean
Diffstat (limited to 'i_ui.go')
-rw-r--r-- | i_ui.go | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -39,7 +39,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/i_ui.go - * Wed Dec 27 16:41:52 2023 + * Wed Dec 27 18:19:37 2023 * Joe * * interfacing with the user @@ -65,18 +65,17 @@ type HardUI struct { dir_style tcell.Style title_style tcell.Style dim [2]int - sel HardSelect + sel HardSelector } -type HardSelect struct { +type HardSelector struct { line int dirs_ptr *DirsNode host_ptr *HostNode } func (ui *HardUI) inc_sel(n int) { - sel := &ui.sel - sel.line += n + ui.sel.line += n } func i_draw_text(s tcell.Screen, |