# Pass a \`&mut BlockContext\` when rendering blocks · gitcafe/zed

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

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

Visibility: public

Requested revision: aefdde66a6e2f064ddd941a9852601b45db6c2f8

Requested commit: aefdde66a6e2f064ddd941a9852601b45db6c2f8

Commit: aefdde66a6e2f064ddd941a9852601b45db6c2f8

Tree: 1def67a19f7fbaedc57a9ffdb8318e1061731b8f

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Pass a `&mut BlockContext` when rendering blocks

This wraps and derefs to `RenderContext<Editor>`, so that we can
easily use `MouseEventHandler`s in blocks.

```

## Parents

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

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