From: Mischa POSLAWSKY Date: Sun, 1 Nov 2015 02:48:47 +0000 (+0100) Subject: termcol: fix cell description fallback of index 0 X-Git-Tag: v1.9~91 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/13c7c8e9c8f8b5c583ca5563161e177b1a133e5e termcol: fix cell description fallback of index 0 --- diff --git a/termcol.plp b/termcol.plp index 60afba6..189b89c 100644 --- a/termcol.plp +++ b/termcol.plp @@ -32,7 +32,7 @@ use Shiar_Sheet::Colour '1.03'; use List::Util qw( min max ); sub colcell { - my $name = shift or return "\n"; + my $name = shift // return "\n"; my $col = Shiar_Sheet::Colour->new(@_); my $minhex = $col->rgb24; my $css = '#' . $col->rgb48;