From b031671138a6b997e934cfafa17f03247c036c71 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 29 Mar 2012 01:27:57 +0200 Subject: [PATCH] tty, readline: fix style errors --- lib/readline.js | 4 ++-- lib/tty.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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