From f076a7c5d1669e725d0e37c6f52f8ba698c4aef8 Mon Sep 17 00:00:00 2001 From: "Michael T. DeGuzis" Date: Thu, 11 Aug 2022 10:17:54 -0400 Subject: [PATCH] Fix version detection for non-standard tmux --- libtmux/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtmux/common.py b/libtmux/common.py index 5217bc44e..78ffc2a30 100644 --- a/libtmux/common.py +++ b/libtmux/common.py @@ -552,7 +552,7 @@ def get_version() -> LooseVersion: ) raise exc.VersionTooLow(proc.stderr) - version = proc.stdout[0].split("tmux ")[1] + version = re.search('[0-9]{1}.[0-9]', proc.stdout[0]).group(0) # Allow latest tmux HEAD if version == "master":