# terminal: Consume event during processing \(\#30869\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4266f0da85080175226b68af691e253746bb9cae

Requested commit: 4266f0da85080175226b68af691e253746bb9cae

Commit: 4266f0da85080175226b68af691e253746bb9cae

Tree: b16b6df003b5ee99b94e9a74238712181ebb43ea

Author: tidely

Committer: GitHub

## Message

```
terminal: Consume event during processing (#30869)

By consuming the event during processing we save a few clones during
event processing.

Overall in this PR we save one Clone each during:

- Paste to the terminal
- Writing to the terminal
- Setting the title
- On every terminal transaction
- On every ViMotion when not using shift

Release Notes:

- N/A
```

## Parents

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

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