diff options
Diffstat (limited to 'i_events.go')
-rw-r--r-- | i_events.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/i_events.go b/i_events.go index c73895e..7e2197c 100644 --- a/i_events.go +++ b/i_events.go @@ -52,7 +52,6 @@ package main import ( - // "fmt" "os" "github.com/gdamore/tcell/v2" @@ -63,6 +62,7 @@ func i_list_follow_cursor(litems *ItemsList, ui *HardUI) { if litems.draw == nil || litems.curr == nil { return } + // HACK: find workaround to kill ids virt_id := litems.curr.ID - (ui.dim[H] - 4) + 4 for litems.draw.ID < virt_id && litems.draw.next != nil { @@ -334,14 +334,6 @@ func i_events(data *HardData) { } else if event.Rune() == 'y' { i_delete_host(data) ui.mode = NORMAL_MODE - // data.ui.s.Fini() - // fmt.Println( - // "head:", data.litems.head, - // "\nlast:", data.litems.last, - // "\ncurr:", data.litems.curr, - // "\ndraw:", data.litems.draw, - // ) - // os.Exit(0) } } } |