terminal: Fix copy to clipboard lag (#7323)
Fixes #7322 Release Notes: - Fixed terminal's copy to clipboard being non-instant ([7322](https://github.com/zed-industries/zed/issues/7322))
This commit is contained in:
parent
28a62affe4
commit
46464ebe87
1 changed files with 2 additions and 1 deletions
|
@ -478,7 +478,8 @@ impl TerminalView {
|
|||
|
||||
///Attempt to paste the clipboard into the terminal
|
||||
fn copy(&mut self, _: &Copy, cx: &mut ViewContext<Self>) {
|
||||
self.terminal.update(cx, |term, _| term.copy())
|
||||
self.terminal.update(cx, |term, _| term.copy());
|
||||
cx.notify();
|
||||
}
|
||||
|
||||
///Attempt to paste the clipboard into the terminal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue