# pane: Disable the "Close\.\.\." controls depending on certain scenarios \(\#25037\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a99696b95feab723f385cbbe1557fbf668674cd2

Requested commit: a99696b95feab723f385cbbe1557fbf668674cd2

Commit: a99696b95feab723f385cbbe1557fbf668674cd2

Tree: 1b1d599563dc9ecbce306450dac237faa2882049

Author: Danilo Leal

Committer: GitHub

## Message

```
pane: Disable the "Close..." controls depending on certain scenarios (#25037)

Closes https://github.com/zed-industries/zed/issues/12471

- Disables "Close Others" if there's just one tab
- Disables "Close Left"/"Close Right" if the above is true or if there's
no tabs to the left/right side of the active tab

Release Notes:

- N/A
```

## Parents

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

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