# Don't save deleted files \(\#24171\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9a22ef2fd545439245d461291c596c787e6676bd

Requested commit: 9a22ef2fd545439245d461291c596c787e6676bd

Commit: 9a22ef2fd545439245d461291c596c787e6676bd

Tree: da70378df1350bf09f390338c5eaaab997852d0c

Author: Conrad Irwin

Committer: GitHub

## Message

```
Don't save deleted files (#24171)

We now treat new files that have no content as not-dirty. This fixes the
git diff view when deleted files are present.

It also fixes a long-standing bug where `zed RAEDME` and then closing
the tab would prompt for "unsaved changes" when there were none.

Release Notes:

- Fixed a bug where closing an empty, named, file would warn about
unsaved content.
```

## Parents

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

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