summaryrefslogtreecommitdiffstats
path: root/pkg/gui/staging_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-03 15:56:11 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-04-06 19:34:32 +1000
commit0898a7bb57bc399ff016cea06a0ca35d0bf54d6b (patch)
treebc1a26ea01d493f4661bf8352cf0f1744dbf33ff /pkg/gui/staging_panel.go
parentfafd5234bd7be6916e00712a3a138bf2ee92e99b (diff)
refactor
Diffstat (limited to 'pkg/gui/staging_panel.go')
-rw-r--r--pkg/gui/staging_panel.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/staging_panel.go b/pkg/gui/staging_panel.go
index 617a4c203..f8c65627c 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)
+ return gui.pushContext(gui.State.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); err != nil {
+ if err := gui.pushContext(gui.State.Contexts.Staging); err != nil {
return err
}
@@ -115,7 +115,7 @@ func (gui *Gui) handleResetSelection() error {
})
},
handleClose: func() error {
- return gui.pushContext(gui.Contexts.Staging)
+ return gui.pushContext(gui.State.Contexts.Staging)
},
})
} else {