diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..5ad72f6 --- /dev/null +++ b/build.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +set -e + +go build -o ./bin/gemlog-cli diff --git a/internal/ui/entryList.go b/internal/ui/entryList.go index 5be6dfc..0331cab 100644 --- a/internal/ui/entryList.go +++ b/internal/ui/entryList.go @@ -39,7 +39,7 @@ func (m EntryListPageModel) Update(msg tea.Msg, active bool, ctx *context) (Entr m.cursor-- } case "down", "j": - if m.cursor < len(actions)-1 { + if m.cursor < len(m.entries)-1 { m.cursor++ } case "left", "h":