# Fix single-line editors not working anymore \(\#10994\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 11bcfea6d29c8fe0945b6683264230023a037d31

Requested commit: 11bcfea6d29c8fe0945b6683264230023a037d31

Commit: 11bcfea6d29c8fe0945b6683264230023a037d31

Tree: 4313d2dca0d070d06ae86ae7c4050f937600391a

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Fix single-line editors not working anymore (#10994)

This was introduced with #10979 and was caused by a missing call to
`cx.set_view_id` in `EditorElement`, which is necessary when rendering
`EditorElement` manually instead of via a view.

Release Notes:

- N/A
```

## Parents

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

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