Browse Source

repl: fix buffer clearing after npm command

v0.9.1-release
Ben Noordhuis 13 years ago
parent
commit
c40875ee13
  1. 2
      lib/repl.js

2
lib/repl.js

@ -285,7 +285,7 @@ function REPLServer(prompt, stream, eval, useGlobal, ignoreUndefined) {
self.outputStream.write('npm should be run outside of the ' + self.outputStream.write('npm should be run outside of the ' +
'node repl, in your normal shell.\n' + 'node repl, in your normal shell.\n' +
'(Press Control-D to exit.)\n'); '(Press Control-D to exit.)\n');
self.bufferedCmd = ''; self.bufferedCommand = '';
self.displayPrompt(); self.displayPrompt();
return; return;
} }

Loading…
Cancel
Save