don't ever highlight main

This commit is contained in:
Jesse Duffield 2019-06-29 15:49:45 +10:00
parent 32fc8ea3e2
commit c57b7122df

View file

@ -31,7 +31,7 @@ func (gui *Gui) getFocusLayout() func(g *gocui.Gui) error {
func (gui *Gui) onFocusChange() error {
currentView := gui.g.CurrentView()
for _, view := range gui.g.Views() {
view.Highlight = view == currentView
view.Highlight = view == currentView && view.Name() != "main"
}
return nil
}