@@ -366,7 +366,7 @@ func (self *LocalCommitsController) reword(commit *models.Commit) error {
366366 if self .c .UserConfig ().Git .Commit .AutoWrapCommitMessage {
367367 commitMessage = helpers .TryRemoveHardLineBreaks (commitMessage , self .c .UserConfig ().Git .Commit .AutoWrapWidth )
368368 }
369- return self .c .Helpers ().Commits .OpenCommitMessagePanel (
369+ self .c .Helpers ().Commits .OpenCommitMessagePanel (
370370 & helpers.OpenCommitMessagePanelOpts {
371371 CommitIndex : self .context ().GetSelectedLineIdx (),
372372 InitialMessage : commitMessage ,
@@ -377,6 +377,8 @@ func (self *LocalCommitsController) reword(commit *models.Commit) error {
377377 OnSwitchToEditor : self .switchFromCommitMessagePanelToEditor ,
378378 },
379379 )
380+
381+ return nil
380382}
381383
382384func (self * LocalCommitsController ) switchFromCommitMessagePanelToEditor (filepath string ) error {
@@ -931,7 +933,7 @@ func (self *LocalCommitsController) createAmendCommit(commit *models.Commit, inc
931933 commitMessage = helpers .TryRemoveHardLineBreaks (commitMessage , self .c .UserConfig ().Git .Commit .AutoWrapWidth )
932934 }
933935 originalSubject , _ , _ := strings .Cut (commitMessage , "\n " )
934- return self .c .Helpers ().Commits .OpenCommitMessagePanel (
936+ self .c .Helpers ().Commits .OpenCommitMessagePanel (
935937 & helpers.OpenCommitMessagePanelOpts {
936938 CommitIndex : self .context ().GetSelectedLineIdx (),
937939 InitialMessage : commitMessage ,
@@ -952,6 +954,8 @@ func (self *LocalCommitsController) createAmendCommit(commit *models.Commit, inc
952954 OnSwitchToEditor : nil ,
953955 },
954956 )
957+
958+ return nil
955959}
956960
957961func (self * LocalCommitsController ) squashFixupCommits () error {
0 commit comments