diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-19 09:31:52 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-19 12:12:57 +1100 |
commit | d93fef4c61db20dd9e2bb535c2fbb742cdbed60a (patch) | |
tree | 0e065ab7f334ea44b4597a79f6f8e36a018f2a15 /pkg/gui/filtering_menu_panel.go | |
parent | 4b56d428ffda44cf433d7cfdd83ea99417ec3e86 (diff) |
use generics to DRY up context code
Diffstat (limited to 'pkg/gui/filtering_menu_panel.go')
-rw-r--r-- | pkg/gui/filtering_menu_panel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/filtering_menu_panel.go b/pkg/gui/filtering_menu_panel.go index fefe6a892..7bcc26363 100644 --- a/pkg/gui/filtering_menu_panel.go +++ b/pkg/gui/filtering_menu_panel.go @@ -16,7 +16,7 @@ func (gui *Gui) handleCreateFilteringMenuPanel() error { fileName = node.GetPath() } case gui.State.Contexts.CommitFiles: - node := gui.State.Contexts.CommitFiles.GetSelectedFileNode() + node := gui.State.Contexts.CommitFiles.GetSelected() if node != nil { fileName = node.GetPath() } |