diff --git a/lib/repl.js b/lib/repl.js index b4322ea23154f2..241e25f0f2095a 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -861,7 +861,6 @@ function REPLServer(prompt, // code alignment const matches = self._sawKeyPress ? RegExpPrototypeExec(/^\s+/, cmd) : null; - // Preserve indentation in editorMode if (matches) { const prefix = matches[0]; self.write(prefix);