Skip to content

Commit

Permalink
Fix tmux version when tmux -V reports things lik next-3.0 (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
petobens authored and jalvesaq committed Apr 3, 2019
1 parent 485308d commit f0cba0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/tmux.vim
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ if system("uname") =~ "OpenBSD"
else
let s:tmuxversion = system("tmux -V")
let s:tmuxversion = substitute(s:tmuxversion, "master", "1.8", "")
let s:tmuxversion = substitute(s:tmuxversion, "next", "1.8", "")
let s:tmuxversion = substitute(s:tmuxversion, '.*tmux \([0-9]\.[0-9]\).*', '\1', '')
if strlen(s:tmuxversion) != 3
let s:tmuxversion = "1.0"
Expand Down

0 comments on commit f0cba0d

Please sign in to comment.