readline: don't use Function#call()
It wasn't necessary.
This commit is contained in:
parent
2297d638c1
commit
8a9e8d60d2
@ -350,13 +350,13 @@ Interface.prototype._tabComplete = function() {
|
|||||||
for (var i = 0, compLen = completions.length; i < compLen; i++) {
|
for (var i = 0, compLen = completions.length; i < compLen; i++) {
|
||||||
c = completions[i];
|
c = completions[i];
|
||||||
if (c === '') {
|
if (c === '') {
|
||||||
handleGroup.call(self, group, width, maxColumns);
|
handleGroup(self, group, width, maxColumns);
|
||||||
group = [];
|
group = [];
|
||||||
} else {
|
} else {
|
||||||
group.push(c);
|
group.push(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
handleGroup.call(self, group, width, maxColumns);
|
handleGroup(self, group, width, maxColumns);
|
||||||
|
|
||||||
// If there is a common prefix to all matches, then apply that
|
// If there is a common prefix to all matches, then apply that
|
||||||
// portion.
|
// portion.
|
||||||
@ -373,8 +373,7 @@ Interface.prototype._tabComplete = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// this = Interface instance
|
// this = Interface instance
|
||||||
function handleGroup(group, width, maxColumns) {
|
function handleGroup(self, group, width, maxColumns) {
|
||||||
var self = this;
|
|
||||||
if (group.length == 0) {
|
if (group.length == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user