diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-12-20 13:01:41 +0100 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-03-09 10:00:44 +0100 |
commit | 379a6f1922aaa9f2eb7ec27a8818fbacd1db0057 (patch) | |
tree | 356dc2684451d764ab3d7aea179a834552be5c50 /pkg/gui/controllers.go | |
parent | cede0214009888e32027beb212b63e30e77d29e7 (diff) |
Save and restore the unwrapped description
When preserving the commit message (when cancelling a commit), and later
restoring it, use the unwrapped description.
Diffstat (limited to 'pkg/gui/controllers.go')
-rw-r--r-- | pkg/gui/controllers.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/controllers.go b/pkg/gui/controllers.go index 30caae930..1dbf9b7d7 100644 --- a/pkg/gui/controllers.go +++ b/pkg/gui/controllers.go @@ -38,10 +38,14 @@ func (gui *Gui) resetHelpersAndControllers() { getCommitDescription := func() string { return strings.TrimSpace(gui.Views.CommitDescription.TextArea.GetContent()) } + getUnwrappedCommitDescription := func() string { + return strings.TrimSpace(gui.Views.CommitDescription.TextArea.GetUnwrappedContent()) + } commitsHelper := helpers.NewCommitsHelper(helperCommon, getCommitSummary, setCommitSummary, getCommitDescription, + getUnwrappedCommitDescription, setCommitDescription, ) |