# editor: Add tests to ensure no horizontal scrolling is possible in soft wrap mode \(\#36411\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 58f7006898d2f67f038f6305f08a9fb990f7a771

Requested commit: 58f7006898d2f67f038f6305f08a9fb990f7a771

Commit: 58f7006898d2f67f038f6305f08a9fb990f7a771

Tree: 6c1d9341daa5aa5eba727ebe0a1695d64504b4cd

Author: Finn Evers

Committer: GitHub

## Message

```
editor: Add tests to ensure no horizontal scrolling is possible in soft wrap mode (#36411)

Prior to https://github.com/zed-industries/zed/pull/34564 as well as
https://github.com/zed-industries/zed/pull/26893, we would have cases
where editors would be scrollable even if `soft_wrap` was set to
`editor_width`. This has regressed and improved quite a few times back
and forth. The issue was only within the editor code, the code for the
wrap map was functioning and tested properly.

Hence, this PR adds two tests to the editor rendering code in an effort
to ensure that we maintain the current correct behavior.

Release Notes:

- N/A
```

## Parents

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

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