Browse Source

debugger: repeat command functionality

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
a3c4e17c2a
  1. 9
      lib/_debugger.js

9
lib/_debugger.js

@ -351,10 +351,15 @@ function Interface() {
});
term.on('line', function(cmd) {
// trim whitespace
cmd = cmd.replace(/^\s*/, '').replace(/\s*$/, '');
self.handleCommand(cmd);
if (cmd.length) {
self._lastCommand = cmd;
self.handleCommand(cmd);
} else {
self.handleCommand(self._lastCommand);
}
});
}

Loading…
Cancel
Save