From: Ralf Ertzinger Date: Tue, 30 Apr 2013 17:19:54 +0000 (+0200) Subject: libvideosite: send "default" to remote color API for default colors instead of undef X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=commitdiff_plain;h=d9024dd1ed28a0874174c9050ba2112e6e8aa0d5;hp=5493280845acf44bba4182f54c1ec3f155e7ac39 libvideosite: send "default" to remote color API for default colors instead of undef --- 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); }