-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
Describe the bug
When pasting multiple lines of text into the "Commit summary" editor, the newline characters are stripped, causing the content to be merged into a single line.
- Regression: This worked correctly in version
0.57.0. - Related Issue: Possibly related to Problems with Emojis in 0.58.0 #5171.
To Reproduce
- Copy a block of multi-line text.
- Open the Commit summary editor.
- Press
Ctrl+Shift+Vto paste the content. - Result: The line breaks disappear, and the text becomes a single continuous string.
Original multi-line content for testing:
demo
- demo 1111111111111111111111111111
- demo 2222222222222222222222222222
- demo 3333333333333333333333333333
- demo 4444444444444444444444444444
Screenshots
Expected behavior
The editor should respect and preserve the original line breaks from the clipboard content like before.
Screenshots (v0.57.0)
Version info:
➜ ~ lazygit --version
commit=v0.58.0, build date=2026-01-03T19:33:53Z, build source=binaryRelease, version=0.58.0, os=linux, arch=amd64, git version=2.52.0
➜ ~ git --version
git version 2.52.0Additional Context
I’ve noticed that if I use Ctrl+O to open the Commit Menu and then press p, the multi-line content pastes correctly in both v0.57.0 and v0.58.0.
This suggests the internal pasting logic is still intact. However, it would be much more convenient if direct pasting via Ctrl+Shift+V in the summary field could also respect line breaks, as the current menu-based workaround is less efficient.
Thank you for your hard work on this project! I really enjoy using it and appreciate all your efforts. ❤️