aboutsummaryrefslogtreecommitdiff
path: root/src/pane.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pane.rs')
-rw-r--r--src/pane.rs16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/pane.rs b/src/pane.rs
index b7bd30bc..4f1ea0ad 100644
--- a/src/pane.rs
+++ b/src/pane.rs
@@ -1392,11 +1392,21 @@ impl PaneRuntimeIo {
text: Bytes,
enter: Bytes,
delay: std::time::Duration,
+ deadline: Option<std::time::Instant>,
) -> std::io::Result<std::sync::mpsc::Receiver<std::io::Result<()>>> {
match self {
- PaneRuntimeIo::Actor(actor) => actor.queue_user_input_submission(text, enter, delay),
+ PaneRuntimeIo::Actor(actor) => {
+ #[cfg(windows)]
+ return actor.queue_user_input_submission(text, enter, delay, deadline);
+ #[cfg(unix)]
+ {
+ let _ = deadline;
+ actor.queue_user_input_submission(text, enter, delay)
+ }
+ }
#[cfg(test)]
PaneRuntimeIo::TestChannel { sender, .. } => {
+ let _ = deadline;
let sender = sender.clone();
let (reply_tx, reply_rx) = std::sync::mpsc::channel();
std::thread::spawn(move || {
@@ -3112,8 +3122,10 @@ impl PaneRuntime {
text: Bytes,
enter: Bytes,
delay: std::time::Duration,
+ deadline: Option<std::time::Instant>,
) -> std::io::Result<std::sync::mpsc::Receiver<std::io::Result<()>>> {
- self.io.queue_user_input_submission(text, enter, delay)
+ self.io
+ .queue_user_input_submission(text, enter, delay, deadline)
}
pub fn try_send_paste(&self, text: String) -> Result<(), mpsc::error::TrySendError<Bytes>> {