From 3cfc29715f29a33d0f433e66c8e98341d4410c41 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 4 Apr 2020 08:03:18 +0000 Subject: viewdiff: reduce sub parameter count We're slowly moving towards doing all of our output buffering into a single buffer, so passing that around on the stack as a dedicated parameter is confusing. --- lib/PublicInbox/View.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/View.pm') diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index f0584cb7..12ef6431 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -589,7 +589,7 @@ sub add_text_body { # callback for msg_iter if ($cur =~ /\A>/) { flush_quote($rv, $l, \$cur); } elsif ($diff) { - flush_diff($rv, $ctx, \$cur); + flush_diff($ctx, \$cur); } else { # regular lines, OK $$rv .= $l->to_html($cur); -- cgit v1.2.3-24-ge0c7