diff --git a/ui/ui.go b/ui/ui.go index a94cb67..e17bf75 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -347,16 +347,12 @@ func view(mdl tea.Model) string { return errorView(m.fatalErr, true) } - var s string - switch m.state { - case stateShowStash: - return stashView(m.stash) case stateShowDocument: return pagerView(m.pager) + default: + return stashView(m.stash) } - - return "\n" + indent(s, 2) } func errorView(err error, fatal bool) string {