jesseduffield.lazygit/pkg
Moritz Haase 8fb47fb7d6 pkg/commands: Don't duplicate line breaks when retrieving commit message
When using the "copy commit message to clipboard" action, the message will end
up in the clipboard with duplicate line breaks. The same issue also affects the
"Reword Commit" command. GetCommitMessage(), the function used to retrieve the
commit message first splits the output returned by git into separate lines -
without removing the line breaks. After removing the first line (which contains
the commit SHA), it joins the lines of the message itself back together - adding
a second set of line breaks along the way. Stop this from happening.

Fixes #1808.
2022-03-23 08:19:17 +11:00
..
app update linters 2022-03-19 12:12:57 +11:00
cheatsheet update linters 2022-03-19 12:12:57 +11:00
commands pkg/commands: Don't duplicate line breaks when retrieving commit message 2022-03-23 08:19:17 +11:00
common introduce Common struct for passing around common stuff 2022-01-04 09:07:15 +11:00
config update linters 2022-03-19 12:12:57 +11:00
constants update release notes 2021-04-20 18:34:47 +10:00
env move git dir env stuff into a centralised package 2020-09-29 17:42:07 +10:00
gui update linters 2022-03-19 12:12:57 +11:00
i18n refactor credential handling 2022-03-17 19:13:40 +11:00
integration update linters 2022-03-19 12:12:57 +11:00
secureexec Format code to pass lint 2021-09-16 21:38:43 +08:00
tasks update linters 2022-03-19 12:12:57 +11:00
test update linters 2022-03-19 12:12:57 +11:00
theme Add unstagedChangesColor config option 2022-03-16 19:21:39 +11:00
updates pkg/updates: Fix resource availability check in Updater 2022-03-18 22:19:45 +11:00
utils update linters 2022-03-19 12:12:57 +11:00