tty, readline: fix style errors
This commit is contained in:
parent
973bbecf1a
commit
b031671138
@ -287,9 +287,9 @@ Interface.prototype._insertString = function(c) {
|
||||
this.cursor += c.length;
|
||||
|
||||
if (this._getCursorPos().cols === 0) {
|
||||
this._refreshLine();
|
||||
this._refreshLine();
|
||||
} else {
|
||||
this.output.write(c);
|
||||
this.output.write(c);
|
||||
}
|
||||
|
||||
// a hack to get the line refreshed if it's needed
|
||||
|
@ -104,7 +104,7 @@ WriteStream.prototype._refreshSize = function() {
|
||||
this.rows = newRows;
|
||||
this.emit('resize');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// backwards-compat
|
||||
|
Loading…
x
Reference in New Issue
Block a user