diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-03-21 10:17:49 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-03-30 21:57:00 +1100 |
commit | 120bb443febe96dfb72e6f5859df697e5fb27e0a (patch) | |
tree | 4135cd22876a549bcf532f644ed1100951a15447 /pkg/gui/filtering_menu_panel.go | |
parent | 6fc3c03c4b7ffb216c753ac62e609687cfe2bed9 (diff) |
small thing
Diffstat (limited to 'pkg/gui/filtering_menu_panel.go')
-rw-r--r-- | pkg/gui/filtering_menu_panel.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/filtering_menu_panel.go b/pkg/gui/filtering_menu_panel.go index d6872f7e4..acb808e7e 100644 --- a/pkg/gui/filtering_menu_panel.go +++ b/pkg/gui/filtering_menu_panel.go @@ -15,9 +15,9 @@ func (gui *Gui) handleCreateFilteringMenuPanel(g *gocui.Gui, v *gocui.View) erro fileName := "" switch v.Name() { case "files": - file := gui.getSelectedFile() - if file != nil { - fileName = file.Name + node := gui.getSelectedStatusNode() + if node != nil { + fileName = node.Path } case "commitFiles": file := gui.getSelectedCommitFile() |