Commit 20187db
committed
fix(tmux): deduplicate panes from linked windows
`tmux list-panes -a` returns one entry per session-pane combination.
When a pane exists in multiple sessions (via link-window or session
groups), M.panes() produced duplicate entries because the same
physical pane appears multiple times. Since skid is derived from
pane_pid, this triggers the assert in session/init.lua:142.
Skip already-seen pane_id values so each physical pane is returned
only once.1 parent 208e1c5 commit 20187db
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | | - | |
| 95 | + | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
0 commit comments