X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=blobdiff_plain;f=libvideosite.pm;h=12fa60355fbab15cc7b7105fc12f6ef73f8d9324;hp=ace6f81268eab5e1e73c7393e8078c8ed950e983;hb=d9024dd1ed28a0874174c9050ba2112e6e8aa0d5;hpb=5493280845acf44bba4182f54c1ec3f155e7ac39 diff --git a/libvideosite.pm b/libvideosite.pm index ace6f81..12fa603 100644 --- a/libvideosite.pm +++ b/libvideosite.pm @@ -183,6 +183,9 @@ sub _recursive_hash_walk { sub _colorpair { my ($fg, $bg) = @_; + $fg = defined($fg)?$fg:'default'; + $bg = defined($bg)?$bg:'default'; + return $remote_api->{color}->($fg, $bg); }