Skip to content

Commit

Permalink
Fixed error when no displayable tasks are found with the -T option.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/rake/trunk@614 5af023f1-ac1a-0410-98d6-829a145c37ef
  • Loading branch information
jimweirich committed Nov 10, 2007
1 parent f6b903b commit a74f8a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rake.rb
Expand Up @@ -2042,7 +2042,7 @@ def display_tasks_and_comments
puts
end
else
width = displayable_tasks.collect { |t| t.name_with_args.length }.max
width = displayable_tasks.collect { |t| t.name_with_args.length }.max || 10
max_column = 80 - name.size - width - 7
displayable_tasks.each do |t|
printf "#{name} %-#{width}s # %s\n",
Expand Down

0 comments on commit a74f8a9

Please sign in to comment.