refactor: use ++/-- instead

This commit is contained in:
decentral1se 2023-12-29 10:16:41 +01:00
parent d1c87cb316
commit 536ce28192
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 2 additions and 2 deletions

View File

@ -242,13 +242,13 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
})
case "ctrl+n":
m.menuState += 1
m.menuState++
if m.menuState > len(m.menuBar)-1 {
m.menuState = 0
}
case "ctrl+p":
m.menuState -= 1
m.menuState--
if m.menuState < 0 {
m.menuState = len(m.menuBar) - 1
}