# Remove auto-width editor type \(\#34438\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3ecdfc9b5adbe0932cc780fb1183f2de1eea911b

Requested commit: 3ecdfc9b5adbe0932cc780fb1183f2de1eea911b

Commit: 3ecdfc9b5adbe0932cc780fb1183f2de1eea911b

Tree: 250581564e356cfc2a55d1d62b324753958162b1

Author: Cole Miller

Committer: GitHub

## Message

```
Remove auto-width editor type (#34438)

Closes #34044

`EditorMode::SingleLine { auto_width: true }` was only used for the
title editor in the rules library, and following
https://github.com/zed-industries/zed/pull/31994 we can replace that
with a normal single-line editor without problems. The auto-width editor
was interacting badly with the recently-added newline visualization
code, causing a panic during layout---by switching it to
`Editor::single_line` the newline visualization works there too.

Release Notes:

- Fixed a panic that could occur when opening the rules library.

---------

Co-authored-by: Finn <finn@zed.dev>
```

## Parents

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

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