Prepare for external file drop in pane

This commit is contained in:
Kirill Bulatov
2024-01-07 01:17:49 +02:00
parent dc7f9bbc54
commit 8ff05c6a72
8 changed files with 63 additions and 28 deletions
+1 -1
View File
@@ -693,9 +693,9 @@ impl TerminalElement {
.join("");
new_text.push(' ');
terminal.update(cx, |terminal, _| {
// todo!() long paths are not displayed properly albeit the text is there
terminal.paste(&new_text);
});
cx.stop_propagation();
}
});
+1 -4
View File
@@ -65,11 +65,8 @@ impl TerminalPanel {
return item.downcast::<TerminalView>().is_some();
}
}
if a.downcast_ref::<ExternalPaths>().is_some() {
return true;
}
false
a.downcast_ref::<ExternalPaths>().is_some()
})),
cx,
);