# Revert "Changed cmd\+w with no open tabs to close window \(\#10740\)" \(\#10986\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0de2636324c818ba74f55f8a48ad74b3a2ffe368

Requested commit: 0de2636324c818ba74f55f8a48ad74b3a2ffe368

Commit: 0de2636324c818ba74f55f8a48ad74b3a2ffe368

Tree: 115bfd61c243ffea32e07e515c68fd8fbf03dd6d

Author: Marshall Bowers

Committer: GitHub

## Message

```
Revert "Changed cmd+w with no open tabs to close window (#10740)" (#10986)

This PR reverts #10740, as it makes it too easy to close Zed
accidentally.

Quitting Zed when you don't mean to is disruptive and can break your
flow. This is even more the case when you're collaborating.

Therefore, we shouldn't make it easy to quit Zed when you don't mean to.

If we want to bring back this behavior it needs to have a corresponding
setting that should, in my opinion, be **off** by default. Additionally,
someone made the good point that this behavior should not be present on
Linux or Windows.

This reverts commit 5102e37a5bc344cb1f5f2a4116b55d4d3afafbb0.

Release Notes:

- Changed `cmd-w` with no open tabs to no longer close the window
(preview-only).
```

## Parents

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

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