diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-05 00:44:13 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | b6cc1c949221810966b3c3cb4a386dc6c7faa023 (patch) | |
tree | 3d497d6fee264bb253ca305f0f1d80119c86cd2b /pkg/gui/global_handlers.go | |
parent | 39ae122304868a4de60659291e9220b4bab2dde1 (diff) |
small refactor
Diffstat (limited to 'pkg/gui/global_handlers.go')
-rw-r--r-- | pkg/gui/global_handlers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/global_handlers.go b/pkg/gui/global_handlers.go index d4e0923b7..25aafa588 100644 --- a/pkg/gui/global_handlers.go +++ b/pkg/gui/global_handlers.go @@ -13,8 +13,8 @@ import ( // these views need to be re-rendered when the screen mode changes. The commits view, // for example, will show authorship information in half and full screen mode. func (gui *Gui) rerenderViewsWithScreenModeDependentContent() error { - for _, viewName := range []string{"branches", "commits"} { - if err := gui.rerenderView(viewName); err != nil { + for _, view := range []*gocui.View{gui.Views.Branches, gui.Views.Commits} { + if err := gui.rerenderView(view); err != nil { return err } } |