Fix cannot select in terminal when copy_on_select is enabled (#34131)

Closes #33989


![terminal_select](https://github.com/user-attachments/assets/5027d2f2-f2b3-43a4-8262-3c266fdc5256)

Release Notes:

- N/A
This commit is contained in:
feeiyu 2025-07-14 19:04:54 +08:00 committed by GitHub
parent cf1ce1beed
commit 84124c60db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 12 deletions

View file

@ -715,7 +715,7 @@ impl TerminalView {
///Attempt to paste the clipboard into the terminal
fn copy(&mut self, _: &Copy, _: &mut Window, cx: &mut Context<Self>) {
self.terminal.update(cx, |term, _| term.copy());
self.terminal.update(cx, |term, _| term.copy(None));
cx.notify();
}