diff options
Diffstat (limited to 'pkg/gui/stash_panel.go')
-rw-r--r-- | pkg/gui/stash_panel.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/pkg/gui/stash_panel.go b/pkg/gui/stash_panel.go index ed68d3cd4..e51fcc054 100644 --- a/pkg/gui/stash_panel.go +++ b/pkg/gui/stash_panel.go @@ -9,12 +9,7 @@ import ( // list panel functions func (gui *Gui) getSelectedStashEntry() *models.StashEntry { - selectedLine := gui.State.Panels.Stash.SelectedLineIdx - if selectedLine == -1 { - return nil - } - - return gui.State.Model.StashEntries[selectedLine] + return gui.State.Contexts.Stash.GetSelected() } func (gui *Gui) stashRenderToMain() error { |