1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

refactor how we handle layouts

This commit is contained in:
Jesse Duffield
2020-05-16 12:35:19 +10:00
parent 3c944e0351
commit 771d4b5811
3 changed files with 348 additions and 112 deletions

View File

@ -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()
}