aboutsummaryrefslogtreecommitdiff
path: root/src/app/input/mouse.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-08 14:56:14 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-08 14:56:14 +0300
commitac32c1a19bff6373a3b24618f8e553834e960bdc (patch)
treea1682e93a81f5638b52b816710a3c9010027f9df /src/app/input/mouse.rs
parentc08e51e666f6df9a940393b568943b67940ceedc (diff)
fix: clear agent toast after focus
Diffstat (limited to 'src/app/input/mouse.rs')
-rw-r--r--src/app/input/mouse.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/input/mouse.rs b/src/app/input/mouse.rs
index d0c33138..4a074a2e 100644
--- a/src/app/input/mouse.rs
+++ b/src/app/input/mouse.rs
@@ -1015,6 +1015,7 @@ impl AppState {
self.switch_workspace(ws_idx);
self.switch_tab(tab_idx);
self.focus_pane(target.pane_id);
+ self.toast = None;
self.mode = Mode::Terminal;
}
@@ -1303,6 +1304,7 @@ mod tests {
assert_eq!(app.state.active, Some(1));
assert_eq!(app.state.workspaces[1].focused_pane_id(), Some(target_pane));
+ assert!(app.state.toast.is_none());
assert_eq!(app.state.mode, Mode::Terminal);
}