Skip to content

Commit

Permalink
Add missing reload to show correct article (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
zMoooooritz committed Jan 2, 2024
1 parent 5b3c88f commit 59a30a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/tui/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,14 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case key.Matches(msg, m.keymap.next):
if m.selector.IsFocused() {
m.selector.NextList()
m.updateDisplayedArticle()
} else {
m.toggelViewer(true)
}
case key.Matches(msg, m.keymap.prev):
if m.selector.IsFocused() {
m.selector.PrevList()
m.updateDisplayedArticle()
} else {
m.toggelViewer(true)
}
Expand Down

0 comments on commit 59a30a4

Please sign in to comment.