lint
This commit is contained in:
parent
13198357e9
commit
54a4f99c4e
@ -50,7 +50,7 @@ var O_SYNC = constants.O_SYNC || 0;
|
|||||||
var O_TRUNC = constants.O_TRUNC || 0;
|
var O_TRUNC = constants.O_TRUNC || 0;
|
||||||
var O_WRONLY = constants.O_WRONLY || 0;
|
var O_WRONLY = constants.O_WRONLY || 0;
|
||||||
|
|
||||||
var isWindows = process.platform === 'win32'
|
var isWindows = process.platform === 'win32';
|
||||||
|
|
||||||
fs.Stats = binding.Stats;
|
fs.Stats = binding.Stats;
|
||||||
|
|
||||||
@ -1164,7 +1164,7 @@ var ReadStream = fs.ReadStream = function(path, options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.fd !== null) {
|
if (this.fd !== null) {
|
||||||
process.nextTick(function () {
|
process.nextTick(function() {
|
||||||
self._read();
|
self._read();
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
@ -145,7 +145,7 @@ Interface.prototype._setRawMode = function(mode) {
|
|||||||
if (typeof this.input.setRawMode === 'function') {
|
if (typeof this.input.setRawMode === 'function') {
|
||||||
return this.input.setRawMode(mode);
|
return this.input.setRawMode(mode);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
Interface.prototype.prompt = function(preserveCursor) {
|
Interface.prototype.prompt = function(preserveCursor) {
|
||||||
@ -656,8 +656,9 @@ Interface.prototype._ttyWrite = function(s, key) {
|
|||||||
self.pause();
|
self.pause();
|
||||||
self.emit('SIGCONT');
|
self.emit('SIGCONT');
|
||||||
}
|
}
|
||||||
// explictly re-enable "raw mode" and move the cursor to the correct
|
// explictly re-enable "raw mode" and move the cursor to
|
||||||
// position. See https://github.com/joyent/node/issues/3295.
|
// the correct position.
|
||||||
|
// See https://github.com/joyent/node/issues/3295.
|
||||||
self._setRawMode(true);
|
self._setRawMode(true);
|
||||||
self._refreshLine();
|
self._refreshLine();
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user