Skip to content

Commit

Permalink
Merge pull request #1697 from philz/1696
Browse files Browse the repository at this point in the history
Avoiding infinite loop on very long command names.
  • Loading branch information
vladikoff committed Jul 3, 2020
2 parents 05c0634 + 7985b19 commit ee70306
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/grunt/help.js
Expand Up @@ -12,7 +12,8 @@ exports.initCol1 = function(str) {
};
exports.initWidths = function() {
// Widths for options/tasks table output.
exports.widths = [1, col1len, 2, 76 - col1len];
var commandWidth = Math.max(col1len + 20, 76);
exports.widths = [1, col1len, 2, commandWidth - col1len];
};

// Render an array in table form.
Expand Down

0 comments on commit ee70306

Please sign in to comment.