Browse Source

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.
v0.9.1-release
Nathan Rajlich 13 years ago
parent
commit
ca8dea83a9
  1. 2
      lib/repl.js

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

Loading…
Cancel
Save