diff --git a/ghi b/ghi index f5d1d8e..16c4fc3 100755 --- a/ghi +++ b/ghi @@ -2029,7 +2029,7 @@ module GHI l = 9 + nmax + rmax + no_color { format_labels labels }.to_s.length a = i['assignee'] && i['assignee']['login'] == Authorization.username l += 2 if a - p = i['pull_request']['html_url'] and l += 2 + p = i['pull_request']['html_url'] and l += 2 if i['pull_request'] c = i['comments'] l += c.to_s.length + 1 unless c == 0 m = i['milestone'] diff --git a/lib/ghi/formatting.rb b/lib/ghi/formatting.rb index 2d871da..06d3924 100644 --- a/lib/ghi/formatting.rb +++ b/lib/ghi/formatting.rb @@ -183,7 +183,7 @@ def format_issues issues, include_repo l = 9 + nmax + rmax + no_color { format_labels labels }.to_s.length a = i['assignee'] && i['assignee']['login'] == Authorization.username l += 2 if a - p = i['pull_request']['html_url'] and l += 2 + p = i['pull_request']['html_url'] and l += 2 if i['pull_request'] c = i['comments'] l += c.to_s.length + 1 unless c == 0 m = i['milestone']