diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-08-01 04:27:50 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-01 04:27:50 +0300 |
| commit | b76adc155d979705a353fd6dc87c702f9dfc6c22 (patch) | |
| tree | f613254e0cfbfd2b4450a6a5f3ee7c0ba8136976 /src/app/worktrees.rs | |
| parent | 8d190eddda2c74afa3dc043f8ec8020ffd7b5a94 (diff) | |
fix(input): preserve native key lifecycle across routing (#2142)
refs #2077
Co-authored-by: Jonathan Liebig <jonathan.liebig@gmail.com>
Diffstat (limited to 'src/app/worktrees.rs')
| -rw-r--r-- | src/app/worktrees.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/app/worktrees.rs b/src/app/worktrees.rs index 23e17b4d..0087c8fe 100644 --- a/src/app/worktrees.rs +++ b/src/app/worktrees.rs @@ -997,14 +997,12 @@ impl App { ws_idx: usize, ) { for terminal_id in self.state.terminal_ids_for_workspace(ws_idx) { - if let Some(runtime) = self.terminal_runtimes.remove(&terminal_id) { - tracing::debug!( - workspace_index = ws_idx, - terminal_id = %terminal_id, - "shutting down terminal runtime before worktree removal" - ); - runtime.shutdown(); - } + tracing::debug!( + workspace_index = ws_idx, + terminal_id = %terminal_id, + "shutting down terminal runtime before worktree removal" + ); + self.shutdown_terminal_runtime(terminal_id); } } } |
