aboutsummaryrefslogtreecommitdiff
path: root/src/app/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/input')
-rw-r--r--src/app/input/mouse.rs2
-rw-r--r--src/app/input/navigate.rs4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/app/input/mouse.rs b/src/app/input/mouse.rs
index 9272c279..ae10c0fa 100644
--- a/src/app/input/mouse.rs
+++ b/src/app/input/mouse.rs
@@ -2244,6 +2244,7 @@ mod tests {
app.state.active = Some(0);
app.state.selected = 0;
app.state.toast_config.delivery = crate::config::ToastDelivery::Herdr;
+ app.state.toast_config.delay_seconds = 0;
let target_terminal_id = app.state.workspaces[1]
.panes
.get(&target_pane)
@@ -2305,6 +2306,7 @@ mod tests {
kind: crate::app::state::ToastKind::Finished,
title: "pi finished".into(),
context: "background ยท 2".into(),
+ position: None,
target: Some(crate::app::state::ToastTarget {
workspace_id,
pane_id: target_pane,
diff --git a/src/app/input/navigate.rs b/src/app/input/navigate.rs
index 7f803825..8dacc5c9 100644
--- a/src/app/input/navigate.rs
+++ b/src/app/input/navigate.rs
@@ -148,6 +148,7 @@ impl App {
kind: crate::app::state::ToastKind::NeedsAttention,
title: "custom command failed".to_string(),
context: err.to_string(),
+ position: None,
target: None,
});
self.sync_toast_deadline(previous_toast);
@@ -229,6 +230,7 @@ impl App {
kind: crate::app::state::ToastKind::NeedsAttention,
title: "edit scrollback failed".to_string(),
context: err.to_string(),
+ position: None,
target: None,
});
self.sync_toast_deadline(previous_toast);
@@ -271,6 +273,7 @@ impl App {
kind: crate::app::state::ToastKind::Finished,
title: "opened scrollback".to_string(),
context: format!("focused pane {public_pane_id}"),
+ position: None,
target: None,
});
}
@@ -1295,6 +1298,7 @@ mod tests {
kind: crate::app::state::ToastKind::NeedsAttention,
title: "pi needs attention".into(),
context: "two".into(),
+ position: None,
target: Some(crate::app::state::ToastTarget {
workspace_id: target_workspace_id,
pane_id: target_pane,