summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--model_list.go2
-rw-r--r--view.go4
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 = ">"