Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #79 from sindresorhus/adrianlee44/fix-negative
Browse files Browse the repository at this point in the history
Fix negative maxBarWidth
  • Loading branch information
adrianlee44 committed Apr 22, 2016
1 parent d72863e commit cbbabe0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ module.exports = function (grunt, cb) {
} else {
maxBarWidth = maxColumns - (longestTaskName + 20);
}
maxBarWidth = Math.max(0, maxBarWidth);

function shorten(taskName) {
var nameLength = taskName.length;
Expand Down

0 comments on commit cbbabe0

Please sign in to comment.