# Fix inline diagnostics in the project diff \(\#26275\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f8deebc6db50fee221768e783fee28467bd56cd1

Requested commit: f8deebc6db50fee221768e783fee28467bd56cd1

Commit: f8deebc6db50fee221768e783fee28467bd56cd1

Tree: 0f6df693cb660a2f70c8b2b8f202bd7a3e85a1be

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Fix inline diagnostics in the project diff (#26275)

https://github.com/zed-industries/zed/blob/205f9a9f0391da47a87cac45a41f67d2a23f5a95/crates/editor/src/element.rs#L1643

Due to the snippet above, Zed is supposed to have `row` larger or equal
to `start_row` here:


https://github.com/zed-industries/zed/blob/205f9a9f0391da47a87cac45a41f67d2a23f5a95/crates/editor/src/element.rs#L1694

yet the panic were reported when clicking in the project diff.

That project diff has a lot of highlighting happening already, so the PR
disables inline diagnostics within a git diff view.


Release Notes:

- N/A
```

## Parents

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

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