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 +--------- i_ui.go | 2 -- 2 files changed, 1 insertion(+), 11 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) } } } diff --git a/i_ui.go b/i_ui.go index c545e5a..242a4dc 100644 --- a/i_ui.go +++ b/i_ui.go @@ -60,8 +60,6 @@ import ( type HardUI struct { s tcell.Screen mode uint8 - // HACK: fuck sel_max - // HACK: lists ids might be shit too def_style tcell.Style dir_style tcell.Style title_style tcell.Style -- cgit v1.2.3