mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-21 15:44:17 +02:00
Fix bug where pressing left to exit the pager would also page the stash
This commit is contained in:
parent
8903ad88cd
commit
a04ca3f61e
1 changed files with 1 additions and 0 deletions
1
ui/ui.go
1
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue