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.
This commit is contained in:
parent
aab7cb7dfe
commit
ca8dea83a9
@ -371,7 +371,7 @@ function ArrayStream() {
|
|||||||
this.run = function(data) {
|
this.run = function(data) {
|
||||||
var self = this;
|
var self = this;
|
||||||
data.forEach(function(line) {
|
data.forEach(function(line) {
|
||||||
self.emit('data', line);
|
self.emit('data', line + '\n');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user