From a0b7e17ab11ca40da47f9a0a96a84e00521e6eb9 Mon Sep 17 00:00:00 2001 From: bashbunni Date: Tue, 24 Sep 2024 17:18:26 -0700 Subject: [PATCH] fix(table): use 0 as first row index (no off by one) --- table/table.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/table/table.go b/table/table.go index 5fb4ab0..f8ce972 100644 --- a/table/table.go +++ b/table/table.go @@ -11,11 +11,6 @@ import ( "github.com/charmbracelet/lipgloss/table" ) -const ( - header int = 0 - firstRow int = 1 -) - // Model defines a state for the table widget. type Model struct { KeyMap KeyMap @@ -153,7 +148,6 @@ type Option func(*Model) // New creates a new model for the table widget. func New(opts ...Option) Model { m := Model{ - cursor: firstRow, table: table.New(), KeyMap: DefaultKeyMap(), Help: help.New(),