1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

Save and restore the unwrapped description

When preserving the commit message (when cancelling a commit), and later
restoring it, use the unwrapped description.
This commit is contained in:
Stefan Haller
2023-12-20 13:01:41 +01:00
parent cede021400
commit 379a6f1922
3 changed files with 21 additions and 14 deletions

View File

@ -100,7 +100,7 @@ func (self *CommitMessageController) handleCommitIndexChange(value int) error {
self.c.Helpers().Commits.SetMessageAndDescriptionInView(self.context().GetHistoryMessage())
return nil
} else if currentIndex == context.NoCommitIndex {
self.context().SetHistoryMessage(self.c.Helpers().Commits.JoinCommitMessageAndDescription())
self.context().SetHistoryMessage(self.c.Helpers().Commits.JoinCommitMessageAndUnwrappedDescription())
}
validCommit, err := self.setCommitMessageAtIndex(newIndex)