diff options
author | Joe <rbo@gmx.us> | 2024-11-08 17:10:26 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-11-08 17:10:26 +0100 |
commit | 90d0f4fc061b8c9cca6034fc9af9aa92637f2402 (patch) | |
tree | 34fa7dbd0cc8bdc06fe47df17f157127d0f24c16 | |
parent | wip (diff) | |
download | hardflip-90d0f4fc061b8c9cca6034fc9af9aa92637f2402.tar.gz hardflip-90d0f4fc061b8c9cca6034fc9af9aa92637f2402.tar.bz2 hardflip-90d0f4fc061b8c9cca6034fc9af9aa92637f2402.tar.xz hardflip-90d0f4fc061b8c9cca6034fc9af9aa92637f2402.tar.zst hardflip-90d0f4fc061b8c9cca6034fc9af9aa92637f2402.zip |
fuck thisfuzz
-rw-r--r-- | src/i_host.go | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/i_host.go b/src/i_host.go index b048d4d..72f9564 100644 --- a/src/i_host.go +++ b/src/i_host.go @@ -155,24 +155,25 @@ func i_draw_host_panel_fuzzy(ui HardUI, icons bool, } // TODO: find a way for ptr := lfuzz.draw; ptr != nil && line < ui.dim[H] - 2; ptr = ptr.next { - if ptr.is_dir() == false && ptr.Host != nil { + item := ptr.ptr + if item.is_dir() == false && item.Host != nil { i_host_panel_host(ui, icons, 0, - ptr.Host, - lfuzz.curr.Host, + item.Host, + lfuzz.curr.ptr.Host, data.yank, line) line++ - } else if ptr.Dirs != nil { + } else if item.Dirs != nil { var dir_icon uint8 - if data.folds[ptr.Dirs] != nil { + if data.folds[item.Dirs] != nil { dir_icon = 1 } i_host_panel_dirs(ui, icons, dir_icon, 0, - ptr.Dirs, - lfuzz.curr.Dirs, + item.Dirs, + lfuzz.curr.ptr.Dirs, line) line++ } |