aboutsummaryrefslogtreecommitdiff
path: root/src/app/input/mouse.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-07-07 01:19:39 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-07-07 01:20:13 +0300
commit17e2b2b878ca9b8cad60fd26baef549479c13081 (patch)
treeafc5947934ee3dd382805952605224de4c77ce13 /src/app/input/mouse.rs
parent4f22e9a73ba4d9029468e078235c5f5ce629d179 (diff)
fix: honor prefix in copy mode
refs #681 Based on PR #1092 by @reobin. Co-authored-by: Robin Gagnon <me@reobin.dev>
Diffstat (limited to 'src/app/input/mouse.rs')
-rw-r--r--src/app/input/mouse.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/app/input/mouse.rs b/src/app/input/mouse.rs
index 95afdbe9..495bcd53 100644
--- a/src/app/input/mouse.rs
+++ b/src/app/input/mouse.rs
@@ -1444,7 +1444,7 @@ impl AppState {
self.focus_pane_in_workspace(ws_idx, target.pane_id);
self.toast = None;
- self.mode = Mode::Terminal;
+ self.settle_terminal_mode_after_focus();
}
pub(crate) fn scroll_pane_up(
@@ -1736,11 +1736,13 @@ impl AppState {
pane_id: crate::layout::PaneId,
offset_from_bottom: usize,
) {
- if let Some(ws_idx) = self.active {
- if let Some(rt) = self.runtime_for_pane_in_workspace(terminal_runtimes, ws_idx, pane_id)
- {
- rt.set_scroll_offset_from_bottom(offset_from_bottom);
- }
+ for ws_idx in 0..self.workspaces.len() {
+ let Some(rt) = self.runtime_for_pane_in_workspace(terminal_runtimes, ws_idx, pane_id)
+ else {
+ continue;
+ };
+ rt.set_scroll_offset_from_bottom(offset_from_bottom);
+ return;
}
}