diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-28 13:14:48 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-28 20:48:17 +1100 |
commit | da3b0bf7c8aa6202d5eb9c8178f6648bc695336a (patch) | |
tree | cd0666ae4253469f8f2f1e349357be37bfb3d571 /pkg/gui/staging_panel.go | |
parent | 90ade3225f55652d40c6f0266e50f5328390f02b (diff) |
Start on supporting auto-suggestions when checking out a branch
switch to other fuzzy package with no dependencies
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 44413442f..05c762ed9 100644 --- a/pkg/gui/staging_panel.go +++ b/pkg/gui/staging_panel.go @@ -85,7 +85,7 @@ func (gui *Gui) handleTogglePanel() error { func (gui *Gui) handleStagingEscape() error { gui.escapeLineByLinePanel() - return gui.switchContext(gui.Contexts.Files.Context) + return gui.pushContext(gui.Contexts.Files.Context) } func (gui *Gui) handleToggleStagedSelection() error { @@ -108,7 +108,7 @@ func (gui *Gui) handleResetSelection() error { handlersManageFocus: true, handleConfirm: func() error { return gui.withLBLActiveCheck(func(state *lBlPanelState) error { - if err := gui.switchContext(gui.Contexts.Staging.Context); err != nil { + if err := gui.pushContext(gui.Contexts.Staging.Context); err != nil { return err } @@ -116,7 +116,7 @@ func (gui *Gui) handleResetSelection() error { }) }, handleClose: func() error { - return gui.switchContext(gui.Contexts.Staging.Context) + return gui.pushContext(gui.Contexts.Staging.Context) }, }) } else { |