Fix case where pager commands could be lost

This commit is contained in:
Christian Rocha 2020-07-20 19:41:36 -04:00 committed by Christian Muehlhaeuser
parent d941957b92
commit b31aba3c4e

View file

@ -196,7 +196,7 @@ func update(msg tea.Msg, mdl tea.Model) (tea.Model, tea.Cmd) {
// processing
newPagerModel, cmd := pagerUpdate(msg, m.pager)
m.pager = newPagerModel
cmds = append(batch, cmd)
batch = append(batch, cmd)
}
return m, tea.Batch(batch...)
}