From 4d2843cbdc04098fef4141179f00fdacdb63bcc4 Mon Sep 17 00:00:00 2001 From: eltrac Date: Wed, 4 Mar 2026 11:15:26 +0800 Subject: fix: invisible table head line --- model_list.go | 2 ++ view.go | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/model_list.go b/model_list.go index f2c6a72..12f2238 100644 --- a/model_list.go +++ b/model_list.go @@ -32,6 +32,8 @@ func listModel(arg string) model { println("No drafts found.") os.Exit(1) } + // remove the table head row + records = records[1:] return model{ choices: records, diff --git a/view.go b/view.go index 61716e5..4ee430e 100644 --- a/view.go +++ b/view.go @@ -11,10 +11,6 @@ func (m model) View() tea.View { s := "Unpublished drafts of this Hugo site:\n\n" for i, choice := range m.choices { - if i == 0 { - continue - } - cursor := " " // no cursor if m.cursor == i { cursor = ">" -- cgit v1.2.3