From a04ca3f61e47797ce91aa7a1d48832d08356b172 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Tue, 21 Jul 2020 17:52:16 -0400 Subject: [PATCH] Fix bug where pressing left to exit the pager would also page the stash --- ui/ui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/ui.go b/ui/ui.go index d47a817..1d4e939 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -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.