diff --git a/lib/readline.js b/lib/readline.js index 3251ad23159..52091f7a9b2 100644 --- a/lib/readline.js +++ b/lib/readline.js @@ -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;