# Fix bracketed paste in terminal on middle click \(\#52158\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6d09eded79111d00c96ea094bca0eb74945b7826

Requested commit: 6d09eded79111d00c96ea094bca0eb74945b7826

Commit: 6d09eded79111d00c96ea094bca0eb74945b7826

Tree: 8b58184cc0edd894711b0655688a5a1d51951116

Author: Bryan Mehall

Committer: GitHub

## Message

```
Fix bracketed paste in terminal on middle click (#52158)

## Context

**Current Behavior:** Middle click pastes multiple lines of text and
runs each as an individual terminal command
**Expected Behavior:** On Linux middle click should use bracketed paste
to paste multiple lines and wait for the user to hit "Enter" before
running all commands together like when pressing Ctrl+Shift+V

Steps to reproduce old behavior: 
1. Open terminal 
2. Copy multiple lines of text from outside the terminal
3. Middle click to paste text in terminal


## Self-Review Checklist

<!-- Check before requesting review: -->
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:
Fixed multiple line paste behavior in terminal on middle click

Co-authored-by: Bryan Mehall <1575089+bryanmehall@users.noreply.github.com>
```

## Parents

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

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