From ca8dea83a9e4cdb958e123edc7ff8f0d13599b03 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Fri, 6 Apr 2012 12:54:48 -0700 Subject: [PATCH] repl: make the completer use newlines Fixes the repl.complete() function when terminal is false, since it is now explicitly looking for a '\n' char. --- lib/repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/repl.js b/lib/repl.js index 49085bf4cef..864e08c0524 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -371,7 +371,7 @@ function ArrayStream() { this.run = function(data) { var self = this; data.forEach(function(line) { - self.emit('data', line); + self.emit('data', line + '\n'); }); } }