mirror of https://github.com/nodejs/node.git
remove arrow from current source line
parent
ff05beeef3
commit
4ff15512f5
|
@ -977,23 +977,17 @@ Interface.prototype.list = function() {
|
|||
lines[i] = lines[i].slice(wrapper.length);
|
||||
}
|
||||
|
||||
var breakpoint = client.breakpoints.some(function(bp) {
|
||||
return bp.script === client.currentScript &&
|
||||
bp.line == lineno;
|
||||
});
|
||||
var current = lineno == 1 + client.currentSourceLine,
|
||||
breakpoint = client.breakpoints.some(function(bp) {
|
||||
return bp.script === client.currentScript &&
|
||||
bp.line == lineno;
|
||||
}),
|
||||
line = current ?
|
||||
SourceUnderline(lines[i], client.currentSourceColumn)
|
||||
:
|
||||
lines[i];
|
||||
|
||||
if (lineno == 1 + client.currentSourceLine) {
|
||||
var nchars = intChars(lineno),
|
||||
pointer = breakpoint ? '*' : '=';
|
||||
for (var j = 1; j < nchars - 1; j++) {
|
||||
pointer += '=';
|
||||
}
|
||||
pointer += '>';
|
||||
self.print(pointer + ' ' +
|
||||
SourceUnderline(lines[i], client.currentSourceColumn));
|
||||
} else {
|
||||
self.print(leftPad(lineno, breakpoint && '*') + ' ' + lines[i]);
|
||||
}
|
||||
self.print(leftPad(lineno, breakpoint && '*') + ' ' + line);
|
||||
}
|
||||
self.resume();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue