diff options
Diffstat (limited to 'pkg/gui/filtering_menu_panel.go')
-rw-r--r-- | pkg/gui/filtering_menu_panel.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkg/gui/filtering_menu_panel.go b/pkg/gui/filtering_menu_panel.go index 316ea95d0..856b71572 100644 --- a/pkg/gui/filtering_menu_panel.go +++ b/pkg/gui/filtering_menu_panel.go @@ -7,16 +7,20 @@ import ( "github.com/jesseduffield/gocui" ) -func (gui *Gui) handleCreateScopingMenuPanel(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) handleCreateFilteringMenuPanel(g *gocui.Gui, v *gocui.View) error { + if gui.popupPanelFocused() { + return nil + } + fileName := "" switch v.Name() { case "files": - file, err := gui.getSelectedFile(gui.g) + file, err := gui.getSelectedFile() if err == nil { fileName = file.Name } case "commitFiles": - file := gui.getSelectedCommitFile(gui.g) + file := gui.getSelectedCommitFile() if file != nil { fileName = file.Name } |