Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Forgotten commit: add arguments to handleGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Westerlund authored and TooTallNate committed Jul 7, 2012
1 parent a9b0bcf commit 2297d63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/readline.js
Expand Up @@ -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.
Expand All @@ -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;
Expand Down

0 comments on commit 2297d63

Please sign in to comment.