mirror of https://github.com/nodejs/node.git
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
parent
aab7cb7dfe
commit
ca8dea83a9
|
@ -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');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue