Browse Source

tty, readline: fix style errors

v0.9.1-release
Ben Noordhuis 13 years ago
parent
commit
b031671138
  1. 4
      lib/readline.js
  2. 2
      lib/tty.js

4
lib/readline.js

@ -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

2
lib/tty.js

@ -104,7 +104,7 @@ WriteStream.prototype._refreshSize = function() {
this.rows = newRows;
this.emit('resize');
}
}
};
// backwards-compat

Loading…
Cancel
Save