Forgotten commit: add arguments to handleGroup

pull/24503/head
Jonas Westerlund 2012-07-05 18:46:09 +02:00 committed by Nathan Rajlich
parent a9b0bcfafe
commit 2297d638c1
1 changed files with 3 additions and 3 deletions

View File

@ -350,13 +350,13 @@ Interface.prototype._tabComplete = function() {
for (var i = 0, compLen = completions.length; i < compLen; i++) {
c = completions[i];
if (c === '') {
handleGroup.call(self, group);
handleGroup.call(self, group, width, maxColumns);
group = [];
} else {
group.push(c);
}
}
handleGroup.call(self, group);
handleGroup.call(self, group, width, maxColumns);
// If there is a common prefix to all matches, then apply that
// portion.
@ -373,7 +373,7 @@ Interface.prototype._tabComplete = function() {
};
// this = Interface instance
function handleGroup(group) {
function handleGroup(group, width, maxColumns) {
var self = this;
if (group.length == 0) {
return;