We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db7bb94 commit ed83202Copy full SHA for ed83202
lib/repl.js
@@ -647,10 +647,6 @@ function REPLServer(prompt,
647
enumerable: true
648
});
649
650
- // Figure out which "complete" function to use.
651
- self.completer = (typeof options.completer === 'function') ?
652
- options.completer : completer;
653
-
654
function completer(text, cb) {
655
complete.call(self, text, self.editorMode ?
656
self.completeOnEditorMode(cb) : cb);
@@ -659,7 +655,7 @@ function REPLServer(prompt,
659
Interface.call(this, {
660
input: options.input,
661
657
output: options.output,
662
- completer: self.completer,
658
+ completer: options.completer || completer,
663
terminal: options.terminal,
664
historySize: options.historySize,
665
prompt
0 commit comments