fix implicit global.

This commit is contained in:
Christopher Jeffrey 2015-07-19 05:26:25 -07:00
parent 881fb50681
commit f7c1ba52a3
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ function Program(options) {
this.tmuxVersion = (function() {
if (!self.tmux) return 2;
try {
version = cp.execFileSync('tmux', ['-V'], { encoding: 'utf8' });
var version = cp.execFileSync('tmux', ['-V'], { encoding: 'utf8' });
return +/^tmux ([\d.]+)/i.exec(version.trim().split('\n')[0])[1];
} catch (e) {
return 2;