From: Mischa POSLAWSKY Date: Tue, 3 Nov 2015 00:14:57 +0000 (+0100) Subject: termcol: show reordered cell title "0" X-Git-Tag: v1.9~64 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/c1032338b64b1cec81af6139847d69089acfa69d termcol: show reordered cell title "0" --- 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);