Prepare for external file drop in pane
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user