# editor: Reapply fix for wrap guide positioning \(\#33776\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 06ddc74917e5905d1ab02f7f38d8c52f9b2e575e

Requested commit: 06ddc74917e5905d1ab02f7f38d8c52f9b2e575e

Commit: 06ddc74917e5905d1ab02f7f38d8c52f9b2e575e

Tree: 459cd6a9a058878e67183ea9baeebc6c6f7f05cc

Author: Finn Evers

Committer: GitHub

## Message

```
editor: Reapply fix for wrap guide positioning (#33776)

Reapplies the fix from #33514 which was removed in #33554. Wrap guides
are currently drifting again due to this on main.

Slightly changed the approach here so that we now actually only save the
wrap guides in the `EditorLayout` that will actually be painted. Also
ensures that we paint indent guides that were previously hidden behind
the vertical scrollbar once it auto-hides.

I wanted to add tests for this, however, I am rather sure this depends
on the work/fixes in #33590 and thus I'd prefer to add these later so we
can have this fix in the next release.

Release Notes:

- N/A
```

## Parents

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

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