# editor: Allow no context for the \`excerpt_context_lines\` setting \(\#37982\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9875969cba1f82d9a3f08caee928602691816334

Requested commit: 9875969cba1f82d9a3f08caee928602691816334

Commit: 9875969cba1f82d9a3f08caee928602691816334

Tree: 1704948d93dec8dca70b3e301c255a21c6c70cb1

Author: Finn Evers

Committer: GitHub

## Message

```
editor: Allow no context for the `excerpt_context_lines` setting (#37982)

Closes #37980

There seems to be no reason to hard limit this to 1, and we even have
existing UX for this case already:

<img width="1530" height="748" alt="Bildschirmfoto 2025-09-11 um 11 22
57"
src="https://github.com/user-attachments/assets/d6498318-c905-4d3c-90ab-60e4f2bb6c48"
/>

(Notice the different arrows in the gutter area for single lines)

Hence, allowing the value to honor the request from the issue

Release Notes:

- Allowed `0` as a value for the `excerpt_context_lines` setting
```

## Parents

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

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