# editor: Use editorconfig's max_line_length for hard wrap \(\#36426\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f23314bef4514f3208c712d8604278262b310e37

Requested commit: f23314bef4514f3208c712d8604278262b310e37

Commit: f23314bef4514f3208c712d8604278262b310e37

Tree: 703f2766712a5b997a4fe7ff9cdc9337a57d3e91

Author: Ryan Drew

Committer: GitHub

## Message

```
editor: Use editorconfig's max_line_length for hard wrap (#36426)

PR #20198, "Do not alter soft wrap based on .editorconfig contents"
removed support for setting line lengths for both soft and hard wrap,
not just soft wrap. This causes the `max_line_length` property within a
`.editorconfig` file to be ignored by Zed. This commit restores allowing
for hard wrap limits to be set using `max_line_length` without impacting
soft wrap limits. This is done by merging the `max_line_length` property
from an editorconfig file into Zed's `preferred_line_length` property.

Release Notes:

- Added support for .editorconfig's `max_line_length` property

Signed-off-by: Ryan Drew <git@ry4n.me>
```

## Parents

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

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