Fix bug where pressing left to exit the pager would also page the stash

This commit is contained in:
Christian Rocha 2020-07-21 17:52:16 -04:00 committed by Christian Muehlhaeuser
commit a04ca3f61e

View file

@ -216,6 +216,7 @@ func update(msg tea.Msg, mdl tea.Model) (tea.Model, tea.Cmd) {
case "left", "h", "delete":
if m.state == stateShowDocument && m.pager.state == pagerStateBrowse {
cmds = append(cmds, m.unloadDocument()...)
return m, tea.Batch(cmds...)
}
// Ctrl+C always quits no matter where in the application you are.