terminal: Fix copy to clipboard lag (#7323)

N8th8n8el created

Fixes #7322

Release Notes:

- Fixed terminal's copy to clipboard being non-instant ([7322](https://github.com/zed-industries/zed/issues/7322))

Change summary

crates/terminal_view/src/terminal_view.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Detailed changes

crates/terminal_view/src/terminal_view.rs 🔗

@@ -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