diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-03 14:34:04 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | 8cb10f76e46ef2c9ed413b7c6260b6678a72a662 (patch) | |
tree | c4903d856698e45e1e2b443c2f61cccc67031e84 /pkg/gui/commit_files_panel.go | |
parent | f1d7f59e497a2da9066494d04f26e1ff00a0e4ee (diff) |
refresh main panel when switching between tree and flat mode
Diffstat (limited to 'pkg/gui/commit_files_panel.go')
-rw-r--r-- | pkg/gui/commit_files_panel.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/gui/commit_files_panel.go b/pkg/gui/commit_files_panel.go index 626fe173c..287410ba9 100644 --- a/pkg/gui/commit_files_panel.go +++ b/pkg/gui/commit_files_panel.go @@ -291,6 +291,9 @@ func (gui *Gui) handleToggleCommitFileTreeView() error { if err := gui.Contexts.CommitFiles.HandleRender(); err != nil { return err } + if err := gui.Contexts.CommitFiles.HandleFocus(); err != nil { + return err + } } return nil |