mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-15 01:34:26 +02:00
Clear preserved commit message when entering CommitEditorPanel
This commit is contained in:
committed by
Stefan Haller
parent
47f1d847f1
commit
3bd8a923ee
@ -136,6 +136,10 @@ func (self *WorkingTreeHelper) switchFromCommitMessagePanelToEditor(filepath str
|
||||
// their editor rather than via the popup panel
|
||||
func (self *WorkingTreeHelper) HandleCommitEditorPress() error {
|
||||
return self.WithEnsureCommittableFiles(func() error {
|
||||
// See reasoning in switchFromCommitMessagePanelToEditor for why it makes sense
|
||||
// to clear this message before calling into the editor
|
||||
self.commitsHelper.ClearPreservedCommitMessage()
|
||||
|
||||
self.c.LogAction(self.c.Tr.Actions.Commit)
|
||||
return self.c.RunSubprocessAndRefresh(
|
||||
self.c.Git().Commit.CommitEditorCmdObj(),
|
||||
|
Reference in New Issue
Block a user