fix scroll and add bulid script

This commit is contained in:
Travis Shears 2025-10-08 21:19:12 +02:00
parent e689d210e7
commit 0233572fd1
2 changed files with 6 additions and 1 deletions

5
build.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
set -e
go build -o ./bin/gemlog-cli

View file

@ -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":