termcol: fix abort on invalid coltable info hash
[sheet.git] / termcol.plp
index 3aece81cf64f052ba6fa37283e854d34788e2891..571b2968b9a8d837ddf000d7aae2d34d5bcb9f5e 100644 (file)
@@ -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</%1$s>',