jesseduffield / jesseduffield/lazygit

Pasting into the commit description discards newlines

Open
#3,399 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Describe the bug**
When pasting into from the clipboard into the commit description field, any newlines will be discarded and the entire text will end up on one line.

**To Reproduce**
Steps to reproduce the behavior:

1. Copy the following:
```
- This is a description for a change
- This is a description for another change
- This is a description for yet another change
```
2. Paste it into the commit description with ctrl+shift+v
3. See text on one line

**Expected behavior**
Line breaks are kept

**Screenshots**
![image](https://github.com/jesseduffield/lazygit/assets/67333469/1ac6e25a-cf9c-47da-b79b-88b2547299b0)

**Version info:**
commit=, build date=, build source=nix, version=0.40.2, os=linux, arch=amd64, git version=2.43.2
git version 2.43.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.