diff --git a/lib/readline.js b/lib/readline.js index f7dbe0585d..d910d09999 100644 --- a/lib/readline.js +++ b/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 diff --git a/lib/tty.js b/lib/tty.js index 5bb73ff0a1..6f6e8ad235 100644 --- a/lib/tty.js +++ b/lib/tty.js @@ -104,7 +104,7 @@ WriteStream.prototype._refreshSize = function() { this.rows = newRows; this.emit('resize'); } -} +}; // backwards-compat