# Fix text wrapping in commit message editors \(\#31030\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f2601ce52ce82eb201799ae6c4f1f92f42ccf7c8)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f2601ce52ce82eb201799ae6c4f1f92f42ccf7c8

Requested commit: f2601ce52ce82eb201799ae6c4f1f92f42ccf7c8

Commit: f2601ce52ce82eb201799ae6c4f1f92f42ccf7c8

Tree: 853976fc97007e46bb0821dca57d5a498655f70d

Author: Cole Miller

Committer: GitHub

## Message

```
Fix text wrapping in commit message editors (#31030)

Don't hard wrap interactively; instead, soft wrap in `Bounded` mode
(editor width or 72 chars, whichever is smaller), and then hard wrap
before sending the commit message to git.

This also makes the soft wrap mode and width for commit messages
configurable in language settings.

Previously we didn't support soft wrap modes other than `EditorWidth` in
auto-height editors; I tried to add support for this by analogy with
code that was already there, and it seems to work pretty well.

Closes #27508

Release Notes:

- Fixed confusing wrapping behavior in commit message editors.
```

## Parents

- [a58c48f629ee1749ce0dbf5c81cbccc18c8830a6](https://git.cafe/gitcafe/zed/commit/a58c48f629ee1749ce0dbf5c81cbccc18c8830a6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f2601ce52ce82eb201799ae6c4f1f92f42ccf7c8?format=markdown)
