From b86e613a96d23e90668b5f9aabd2a38b76c30fa4 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 5 Jan 2024 20:20:20 +0100 Subject: now draw litems list --- i_events.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'i_events.go') diff --git a/i_events.go b/i_events.go index a95666a..3afbac0 100644 --- a/i_events.go +++ b/i_events.go @@ -115,9 +115,9 @@ func i_events(data *HardData) { ui.sel_max != 0 { ui.mode = DELETE_MODE } else if event.Key() == tcell.KeyEnter { - if data.ptr != nil && data.ptr.is_dir() == false { + if data.litems.curr != nil && data.litems.curr.is_dir() == false { ui.s.Fini() - c_exec(data.ptr.get_self_host()) + c_exec(data.litems.curr.Host) if data.opts.Loop == false { os.Exit(0) } else { -- cgit v1.2.3