From c1032338b64b1cec81af6139847d69089acfa69d Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 3 Nov 2015 01:14:57 +0100 Subject: [PATCH] termcol: show reordered cell title "0" --- termcol.plp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termcol.plp b/termcol.plp index affceb9..51efa0a 100644 --- a/termcol.plp +++ b/termcol.plp @@ -135,7 +135,7 @@ for my $term (@termlist) { printf "%s\n", $caption; for my $num (0 .. $#{$colours}) { my ($rgb, $name) = split /:/, $colours->[$num], 3; - $name ||= $num; + $name //= $num; $name = [ $name, [] ] if $term =~ /^msx/ and !$num; $name = [ $name, ['#333'] ] if $term eq 'xkcd'; print '', colcell($name, $rgb); -- 2.30.0