libvideosite: send "default" to remote color API for default colors instead of undef
[videosite.git] / libvideosite.pm
index ace6f81..12fa603 100644 (file)
@@ -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);
 }