diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-06-05 15:08:36 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-06-06 09:12:49 +1000 |
commit | 93bf691fd66cfd19702db2a674c73fbefc244467 (patch) | |
tree | 095f49a36f863a7559c17cc75c0e43d5216fabe3 /pkg/gui/cherry_picking.go | |
parent | 82022615ddc25ec5bc0631894e32d8dda380eac2 (diff) |
refactoring
Diffstat (limited to 'pkg/gui/cherry_picking.go')
-rw-r--r-- | pkg/gui/cherry_picking.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/cherry_picking.go b/pkg/gui/cherry_picking.go index fbda109b9..8f144084c 100644 --- a/pkg/gui/cherry_picking.go +++ b/pkg/gui/cherry_picking.go @@ -5,11 +5,11 @@ import "github.com/jesseduffield/lazygit/pkg/commands/models" // you can only copy from one context at a time, because the order and position of commits matter func (gui *Gui) resetCherryPickingIfNecessary(context Context) error { - oldContextKey := gui.State.Modes.CherryPicking.ContextKey + oldContextKey := ContextKey(gui.State.Modes.CherryPicking.ContextKey) if oldContextKey != context.GetKey() { // need to reset the cherry picking mode - gui.State.Modes.CherryPicking.ContextKey = context.GetKey() + gui.State.Modes.CherryPicking.ContextKey = string(context.GetKey()) gui.State.Modes.CherryPicking.CherryPickedCommits = make([]*models.Commit, 0) return gui.rerenderContextViewIfPresent(oldContextKey) @@ -156,7 +156,7 @@ func (gui *Gui) HandlePasteCommits() error { } func (gui *Gui) exitCherryPickingMode() error { - contextKey := gui.State.Modes.CherryPicking.ContextKey + contextKey := ContextKey(gui.State.Modes.CherryPicking.ContextKey) gui.State.Modes.CherryPicking.ContextKey = "" gui.State.Modes.CherryPicking.CherryPickedCommits = nil |