mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 21:05:48 +02:00
use PopContext
This commit is contained in:
parent
ecaff7fc6c
commit
120078f011
6 changed files with 9 additions and 9 deletions
|
@ -18,7 +18,7 @@ func (gui *Gui) handleCommitConfirm() error {
|
|||
cmdObj := gui.git.Commit.CommitCmdObj(message)
|
||||
gui.c.LogAction(gui.c.Tr.Actions.Commit)
|
||||
|
||||
_ = gui.returnFromContext()
|
||||
_ = gui.c.PopContext()
|
||||
return gui.withGpgHandling(cmdObj, gui.c.Tr.CommittingStatus, func() error {
|
||||
gui.Views.CommitMessage.ClearTextArea()
|
||||
gui.State.failedCommitMessage = ""
|
||||
|
@ -27,7 +27,7 @@ func (gui *Gui) handleCommitConfirm() error {
|
|||
}
|
||||
|
||||
func (gui *Gui) handleCommitClose() error {
|
||||
return gui.returnFromContext()
|
||||
return gui.c.PopContext()
|
||||
}
|
||||
|
||||
func (gui *Gui) handleCommitMessageFocused() error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue