Forgotten commit: add arguments to handleGroup
authorJonas Westerlund <jonas.westerlund@me.com>
Thu, 5 Jul 2012 16:46:09 +0000 (18:46 +0200)
committerNathan Rajlich <nathan@tootallnate.net>
Sat, 7 Jul 2012 02:28:35 +0000 (19:28 -0700)
lib/readline.js

index 3251ad2..52091f7 100644 (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;