assume latest tmux version if -V returns 'master'

Close #1727
This commit is contained in:
s-ol 2017-03-07 22:36:51 +01:00
parent 0caef54a85
commit d9f12a458e
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ def get_tmux_version(pl):
version_string = get_tmux_output(pl, '-V')
_, version_string = version_string.split(' ')
version_string = version_string.strip()
if version_string == 'master':
return TmuxVersionInfo(float('inf'), 0, version_string)
major, minor = version_string.split('.')
suffix = DIGITS.subn('', minor)[0] or None
minor = NON_DIGITS.subn('', minor)[0]