about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/ViewDiff.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/ViewDiff.pm b/lib/PublicInbox/ViewDiff.pm
index ff7d85f5..ece95f4c 100644
--- a/lib/PublicInbox/ViewDiff.pm
+++ b/lib/PublicInbox/ViewDiff.pm
@@ -92,8 +92,7 @@ sub anchor0 ($$$$$) {
 
         # long filenames will require us to walk backwards in anchor1
         if ($fn =~ s!\A\.\.\./?!!) {
-                my $lp = $ctx->{-long_path} ||= {};
-                $lp->{$fn} = qr/\Q$fn\E\z/s;
+                $ctx->{-long_path}->{$fn} = qr/\Q$fn\E\z/s;
         }
 
         if (my $attr = to_attr($ctx->{-apfx}.$fn)) {