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.
pull/24503/head
Nathan Rajlich 2012-04-06 12:54:48 -07:00
parent aab7cb7dfe
commit ca8dea83a9
1 changed files with 1 additions and 1 deletions

View File

@ -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');
});
}
}