# Separate WrappedLines from ShapedLines \(\#3350\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2fb13cf1ca0cb875bef8150ffe94f0598cd64ceb

Requested commit: 2fb13cf1ca0cb875bef8150ffe94f0598cd64ceb

Commit: 2fb13cf1ca0cb875bef8150ffe94f0598cd64ceb

Tree: e9f2d42c3385c8f90f1d3ed0e133cc4c7dbe8d8f

Author: Nathan Sobo

Committer: GitHub

## Message

```
Separate WrappedLines from ShapedLines (#3350)

ShapedLines are never wrapped, whereas WrappedLines are optionally
wrapped if they are associated with a wrap width. Originally, when
rewriting GPUI, I tried to combine everything because wrapping is
inherently optional for the Text element, but we have a bunch of APIs
that don't make sense on a line that may wrap, so we need a distinct
type for that case.

This is a precursor to implementing clickable links in markdown. I
noticed multiple places where we were confused about whether or not the
line was wrapped so this felt important.

Release Notes:

- N/A
```

## Parents

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

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

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