From: Mischa POSLAWSKY Date: Sat, 15 Apr 2017 17:29:15 +0000 (+0200) Subject: termcol: fix abort on invalid coltable info hash X-Git-Tag: v1.10~134 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/fd5c01500fca59d3779078d755438c02f209a2c1 termcol: fix abort on invalid coltable info hash Broken since moved into function in commit v1.8-92-gbcdcb87204 (2017-03-22) [termcol: named function to parse table data]. --- diff --git a/termcol.plp b/termcol.plp index 3aece81..571b296 100644 --- a/termcol.plp +++ b/termcol.plp @@ -105,7 +105,7 @@ sub coltable { coltable($_) for @{$info}; } - ref $info eq 'HASH' or next; + ref $info eq 'HASH' or return; my $caption = $info->{name} // $term; $caption = sprintf('<%s %s>%s',