# Don't show diff review button on folded buffers \(\#46968\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2618f2922f0b2e36ef3098bf8104f342e7dea7f6

Requested commit: 2618f2922f0b2e36ef3098bf8104f342e7dea7f6

Commit: 2618f2922f0b2e36ef3098bf8104f342e7dea7f6

Tree: c6d98637fe80951e6704fcb0ffa175d97826dc7e

Author: Danilo Leal

Committer: GitHub

## Message

```
Don't show diff review button on folded buffers (#46968)

We were incorrectly leaking the display of this button when the file was
folded in the multibuffer:

| Before | After |
|--------|--------|
| <img width="788" height="400" alt="Screenshot 2026-01-15 at 11  42@2x"
src="https://github.com/user-attachments/assets/2ef9d154-35b5-4788-91c2-0e7a8d45594c"
/> | <img width="788" height="400" alt="Screenshot 2026-01-15 at 11 
41@2x"
src="https://github.com/user-attachments/assets/f4d9416b-9826-4616-8e36-8876ef5e25ec"
/> |

Release Notes:

- N/A
```

## Parents

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

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