Merge pull request #43 from jesseduffield/yeah_ed

fix menu overlap bug
This commit is contained in:
Jesse Duffield 2019-07-01 22:30:29 +10:00 committed by GitHub
commit e49a2bdb81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,6 +91,10 @@ func (gui *Gui) handleExitMain(g *gocui.Gui, v *gocui.View) error {
}
func (gui *Gui) handleMainClick(g *gocui.Gui, v *gocui.View) error {
if gui.popupPanelFocused() {
return nil
}
currentView := gui.g.CurrentView()
v.ParentView = currentView