chiark
/
gitweb
/
~mdw
/
tgal
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9fc5e8c
)
mason/.perl-lib/TrivGal.pm (listdir): Set item before setting index.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 11 Jun 2023 16:45:31 +0000
(17:45 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 12 Jun 2023 10:48:39 +0000
(11:48 +0100)
Otherwise we set the index to the /previous/ item, which doesn't go so
well. I don't know why I never noticed this before.
mason/.perl-lib/TrivGal.pm
patch
|
blob
|
blame
|
history
diff --git
a/mason/.perl-lib/TrivGal.pm
b/mason/.perl-lib/TrivGal.pm
index 193f1220b1c55d93f2529cd017ade5d7cce2177a..eb82db27ad9e78951de701ceaf991b42a4588785 100644
(file)
--- a/
mason/.perl-lib/TrivGal.pm
+++ b/
mason/.perl-lib/TrivGal.pm
@@
-305,6
+305,7
@@
sub listdir ($) {
$/x;
$name = urldecode $name;
my $list;
+ $item = TrivGal::Item->new($name);
if ($name =~ m#/$#) {
$list = \@d;
die "can't index a folder" if $indexp;
@@
-317,7
+318,6
@@
sub listdir ($) {
$ix = $item;
}
}
- $item = TrivGal::Item->new($name);
$comment = $c;
push @$list, $item;
}