fix implicit global.
This commit is contained in:
parent
881fb50681
commit
f7c1ba52a3
|
@ -94,7 +94,7 @@ function Program(options) {
|
||||||
this.tmuxVersion = (function() {
|
this.tmuxVersion = (function() {
|
||||||
if (!self.tmux) return 2;
|
if (!self.tmux) return 2;
|
||||||
try {
|
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];
|
return +/^tmux ([\d.]+)/i.exec(version.trim().split('\n')[0])[1];
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return 2;
|
return 2;
|
||||||
|
|
Loading…
Reference in New Issue