diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-03 11:32:14 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | bc9a99387f68afb24863d17ab4d29c1686843a76 (patch) | |
tree | aac694046f93d457177086d4c5afb5a0c12ea302 /pkg/gui/staging_panel.go | |
parent | 5289d49f75e9735f129e1f8e2a2f9dc74373515b (diff) |
refactor of contexts and filtering
Diffstat (limited to 'pkg/gui/staging_panel.go')
-rw-r--r-- | pkg/gui/staging_panel.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/staging_panel.go b/pkg/gui/staging_panel.go index d021525dc..617a4c203 100644 --- a/pkg/gui/staging_panel.go +++ b/pkg/gui/staging_panel.go @@ -84,7 +84,7 @@ func (gui *Gui) handleTogglePanel() error { func (gui *Gui) handleStagingEscape() error { gui.escapeLineByLinePanel() - return gui.pushContext(gui.Contexts.Files.Context) + return gui.pushContext(gui.Contexts.Files) } func (gui *Gui) handleToggleStagedSelection() error { @@ -107,7 +107,7 @@ func (gui *Gui) handleResetSelection() error { handlersManageFocus: true, handleConfirm: func() error { return gui.withLBLActiveCheck(func(state *lBlPanelState) error { - if err := gui.pushContext(gui.Contexts.Staging.Context); err != nil { + if err := gui.pushContext(gui.Contexts.Staging); err != nil { return err } @@ -115,7 +115,7 @@ func (gui *Gui) handleResetSelection() error { }) }, handleClose: func() error { - return gui.pushContext(gui.Contexts.Staging.Context) + return gui.pushContext(gui.Contexts.Staging) }, }) } else { |