From 8c2de314acbc1db8231ade829fc763febf028346 Mon Sep 17 00:00:00 2001 From: Ari Pollak Date: Mon, 13 Nov 2017 12:07:47 -0500 Subject: [PATCH] Fix culling sessions with named groups * tmux 2.4 changed the groups to be names instead of numbers: https://github.com/tmux/tmux/commit/c6a3446398648fc2cc3682c351b57b9bfe5bc5f0 --- usr/lib/byobu/include/select-session.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/byobu/include/select-session.py b/usr/lib/byobu/include/select-session.py index 78b0ea15..a56a8363 100755 --- a/usr/lib/byobu/include/select-session.py +++ b/usr/lib/byobu/include/select-session.py @@ -99,10 +99,10 @@ def cull_zombies(session_name): if not output: return - # Find the master session to extract the group number. We use + # Find the master session to extract the group name. We use # the group number to be extra sure the right session is getting # killed. We don't want to accidentally kill the wrong one - pattern = "^%s:.+\\((group \\d+)\\).*$" % session_name + pattern = "^%s:.+\\((group \\w+)\\).*$" % session_name master = re.search(pattern, output, re.MULTILINE) if not master: return