1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-29 22:48:24 +02:00

hide commit files view upon losing focus because you probably don't want it lingering anyway

This commit is contained in:
Jesse Duffield
2021-04-01 00:24:57 +11:00
parent af09223dd5
commit 872cf0d726
2 changed files with 14 additions and 1 deletions

View File

@@ -40,3 +40,9 @@ func (gui *Gui) resetWindowForView(viewName string) {
// we assume here that the window contains as its default view a view with the same name as the window
gui.State.WindowViewNameMap[window] = window
}
func (gui *Gui) renderWindow(window string) error {
viewName := gui.getViewNameForWindow(window)
gui.Log.Warn(viewName)
return gui.rerenderView(viewName)
}