Repository navigation
fix(tmux): reset captured SGR before live output resumes - #632
Conversation
|
Merged and shipped in 1.42.0, closing #629. Thanks @ludovicfourrage, and welcome as a first-time contributor! A very precise first PR: the tests drive the real |
Fixes #629.
Full-history pane captures can end with a nested tmux status bar's SGR still active, making later text and erase-to-end inherit its background. Reset SGR after replayed content and before cursor restoration. Apply the same reset to both raw-capture fallbacks, including the visible path identified in the issue reply. Empty captures retain the empty-string sentinel so callers keep their recorded history.
Adds unit tests exercising the real
capturePaneBufferwith mocked tmux IO, plus a Chromium regression using the installed xterm.js. All three affected branches preserve the green status bar while subsequent text and erased cells use the default background. Registers the browser test in the dedicated runner.Validation:
git diff --checkpass.