diff --git a/CHANGES b/CHANGES index fcaf116824..7e14849722 100644 --- a/CHANGES +++ b/CHANGES @@ -19,6 +19,12 @@ $ pipx install --suffix=@next 'tmuxp' --pip-args '\--pre' --force +## tmuxp 1.52.2 (2025-02-02) + +### Bug fixes + +- `run_before_script()`: Additional output capturing improvements (#960) + ## tmuxp 1.52.1 (2025-02-02) ### Bug fixes diff --git a/pyproject.toml b/pyproject.toml index 8642f56b0e..251a1df63a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "tmuxp" -version = "1.52.1" +version = "1.52.2" description = "Session manager for tmux, which allows users to save and load tmux sessions through simple configuration files." requires-python = ">=3.9,<4.0" authors = [ diff --git a/src/tmuxp/__about__.py b/src/tmuxp/__about__.py index e5e72b26c9..b31e323231 100644 --- a/src/tmuxp/__about__.py +++ b/src/tmuxp/__about__.py @@ -4,7 +4,7 @@ __title__ = "tmuxp" __package_name__ = "tmuxp" -__version__ = "1.52.1" +__version__ = "1.52.2" __description__ = "tmux session manager" __email__ = "tony@git-pull.com" __author__ = "Tony Narlock" diff --git a/src/tmuxp/util.py b/src/tmuxp/util.py index bac9093ed1..490ee7e940 100644 --- a/src/tmuxp/util.py +++ b/src/tmuxp/util.py @@ -65,13 +65,13 @@ def run_before_script( # Read one line from stderr, if available line_err = proc.stderr.readline() if proc.stderr else "" - if line_out: + if line_out and line_out.strip(): out_buffer.append(line_out) if is_out_tty: sys.stdout.write(line_out) sys.stdout.flush() - if line_err: + if line_err and line_err.strip(): err_buffer.append(line_err) if is_err_tty: sys.stderr.write(line_err)