# Fix two issues with diff highlights \(\#24309\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ca01a8b9cb58c90efb29475b5fa4b001a6146392

Requested commit: ca01a8b9cb58c90efb29475b5fa4b001a6146392

Commit: ca01a8b9cb58c90efb29475b5fa4b001a6146392

Tree: 86cd754265a800b184c3a9d4b12e6d9570925268

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Fix two issues with diff highlights (#24309)

* fix syntax highlighting of deleted text when buffer language changes
* do not highlight entire untracked files as created, except in the
project diff view

Release Notes:

- N/A

Co-authored-by: ConradIrwin <conrad.irwin@gmail.com>
Co-authored-by: cole-miller <m@cole-miller.net>
```

## Parents

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

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