# fix\(web\): parse the diff preview patch per mount · stienswout/t3code

[View on GitCafe](https://git.cafe/stienswout/t3code/commit/67599b2710c3ca75350b51b6313793566dc65cf5)

Repository: [stienswout/t3code](https://git.cafe/stienswout/t3code)

Visibility: public

Requested revision: 67599b2710c3ca75350b51b6313793566dc65cf5

Requested commit: 67599b2710c3ca75350b51b6313793566dc65cf5

Commit: 67599b2710c3ca75350b51b6313793566dc65cf5

Tree: 32b8656f371bf2088bbe34b1ca11d41bb19a4708

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(web): parse the diff preview patch per mount

The parse cache hands back shared mutable file objects, and a FileDiff
instance keys its render and highlight bookkeeping on them - the same
reason DiffPanel scopes its cache per theme. With the simple and
advanced typography views both consuming one cached parse, a remounted
preview could inherit stale already-highlighted state and render plain
text. Each mount now parses under its own scope.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

```

## Parents

- [aeef720fb733a94b2ad0faec66a4aec6518879cc](https://git.cafe/stienswout/t3code/commit/aeef720fb733a94b2ad0faec66a4aec6518879cc?format=markdown)

[Source at this commit](https://git.cafe/stienswout/t3code/tree/67599b2710c3ca75350b51b6313793566dc65cf5?format=markdown)
