Add bracketed paste support
This commit is contained in:
parent
cfc956d78f
commit
8349ead6b2
2 changed files with 13 additions and 2 deletions
|
@ -191,7 +191,7 @@ impl Terminal {
|
|||
fn paste(&mut self, _: &Paste, cx: &mut ViewContext<Self>) {
|
||||
if let Some(item) = cx.read_from_clipboard() {
|
||||
self.connection.update(cx, |connection, _| {
|
||||
connection.write_to_pty(item.text().to_owned());
|
||||
connection.paste(item.text());
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue