diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-24 22:07:30 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-26 18:00:46 +1100 |
commit | 13b90ac37f40baa648c25fab6d299ae0fa59118b (patch) | |
tree | 61dd23273a4b32c3c8d191759cc0ce3ae9d7c08a /pkg/gui/window.go | |
parent | e039429885996f1335430a856b846d8dc6279325 (diff) |
support viewing commits of reflog entry and show better view title
Diffstat (limited to 'pkg/gui/window.go')
-rw-r--r-- | pkg/gui/window.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/gui/window.go b/pkg/gui/window.go index 4ea33292a..88d93d5ae 100644 --- a/pkg/gui/window.go +++ b/pkg/gui/window.go @@ -35,5 +35,7 @@ func (gui *Gui) currentWindow() string { func (gui *Gui) resetWindowContext(c types.Context) { // we assume here that the window contains as its default view a view with the same name as the window windowName := c.GetWindowName() - gui.State.WindowViewNameMap[windowName] = windowName + if gui.State.WindowViewNameMap[windowName] == c.GetViewName() { + gui.State.WindowViewNameMap[windowName] = windowName + } } |