diff options
| -rw-r--r-- | model_list.go | 2 | ||||
| -rw-r--r-- | 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, @@ -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 = ">" |
