diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-05-16 12:35:19 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-13 21:50:23 +1000 |
commit | 771d4b5811d03baaca7349621c8ce36ef08523a3 (patch) | |
tree | af1b146e2e7cc1fd5c60f1819fa3f477ab1ca570 /pkg/gui/view_helpers.go | |
parent | 3c944e0351ea489b22e59bec4067a5864f96b9ac (diff) |
refactor how we handle layouts
Diffstat (limited to 'pkg/gui/view_helpers.go')
-rw-r--r-- | pkg/gui/view_helpers.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 032d05002..1294687b6 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -440,6 +440,9 @@ func (gui *Gui) trimmedContent(v *gocui.View) string { func (gui *Gui) currentViewName() string { currentView := gui.g.CurrentView() + if currentView == nil { + return "" + } return currentView.Name() } |