From 8b62e806ebc46d6842c2df23e88fc0f8c03f2f63 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 15 Jan 2024 20:20:20 +0100 Subject: ok --- i_events.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'i_events.go') 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) } } } -- cgit v1.2.3