mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
debugger: repeat command functionality
This commit is contained in:
1 parent
074af67dd3
commit
a3c4e17c2a
1 file changed
+7
-2
+7
-2
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user