Skip to content

Commit 02f1d5e

Browse files
repl: support customizable multiline subprompt
lint fixes for repl file.
1 parent 494e89a commit 02f1d5e

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

lib/repl.js

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -800,22 +800,26 @@ class REPLServer extends Interface {
800800

801801
self.clearBufferedCommand();
802802

803-
function completer(text, cb) {
804-
ReflectApply(complete, self,
805-
[text, self.editorMode ? self.completeOnEditorMode(cb) : cb]);
806-
}
803+
function completer(text, cb) {
804+
ReflectApply(
805+
complete,
806+
self,
807+
[text, self.editorMode ? self.completeOnEditorMode(cb) : cb],
808+
);
809+
}
807810

808-
// All the parameters in the object are defining the "input" param of the
809-
// InterfaceConstructor.
810-
ReflectApply(Interface, this, [{
811-
input: options.input,
812-
output: options.output,
813-
completer: options.completer || completer,
814-
terminal: options.terminal,
815-
historySize: options.historySize,
816-
prompt,
817-
multilinePrompt: options.multilinePrompt,
818-
}]);
811+
812+
// All the parameters in the object are defining the "input" param of the
813+
// InterfaceConstructor.
814+
ReflectApply(Interface, this, [{
815+
input: options.input,
816+
output: options.output,
817+
completer: options.completer || completer,
818+
terminal: options.terminal,
819+
historySize: options.historySize,
820+
prompt,
821+
multilinePrompt: options.multilinePrompt,
822+
}]);
819823

820824
self.resetContext();
821825

0 commit comments

Comments
 (0)