mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-17 03:39:33 +01:00
fix(tmux): bind nested prefix before unbind so an empty table cannot abort the chain
A user tmux config that leaves the prefix table empty makes unbind-key -a -T prefix fail and drop later commands in the \; chain, including send-prefix and remain-on-exit failed. Bind C-q send-prefix, clear the table, then bind it again. Also accept macOS ttys in the TUI switch-guard test without reading /proc, and describe the client_pid hook escape as defensive on tmux 3.4. Co-authored-by: DDT <1786035110@qq.com>
This commit is contained in:
10 files changed
+106
-28
No files matched your search
@@ -166,8 +166,11 @@ describe('COD-107 buildRemoteLaunchCommand — threads connection args', () => {
|
||||
`set -t ${remoteName} window-size latest`,
|
||||
// #671 — the nested server's prefix table is stock unless this chain
|
||||
// reduces it. Ctrl+Q then ) would switch-client onto a sibling session.
|
||||
// Before remain-on-exit: a remote tmux that rejects `failed` aborts the
|
||||
// rest of the chain, and that option has to stay last.
|
||||
// Bind first: a user config that emptied the prefix table makes
|
||||
// `unbind-key -a` fail and tmux drops the rest of the `\;` chain,
|
||||
// including the bind and remain-on-exit. That option stays last because
|
||||
// a remote tmux that rejects `failed` aborts the rest of the chain.
|
||||
'bind-key -T prefix C-q send-prefix',
|
||||
'unbind-key -a -T prefix',
|
||||
'bind-key -T prefix C-q send-prefix',
|
||||
// #210 — keep a CRASHED pane for diagnosis. `failed` (not `on`, which would
|
||||
|
||||
Reference in new issue
Block a user