git://git.camperquake.de
/
videosite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5493280
)
libvideosite: send "default" to remote color API for default colors instead of undef
author
Ralf Ertzinger
<ralf@skytale.net>
Tue, 30 Apr 2013 17:19:54 +0000
(19:19 +0200)
committer
Ralf Ertzinger
<ralf@skytale.net>
Tue, 30 Apr 2013 17:19:54 +0000
(19:19 +0200)
libvideosite.pm
patch
|
blob
|
history
diff --git
a/libvideosite.pm
b/libvideosite.pm
index
ace6f81
..
12fa603
100644
(file)
--- a/
libvideosite.pm
+++ b/
libvideosite.pm
@@
-183,6
+183,9
@@
sub _recursive_hash_walk {
sub _colorpair {
my ($fg, $bg) = @_;
sub _colorpair {
my ($fg, $bg) = @_;
+ $fg = defined($fg)?$fg:'default';
+ $bg = defined($bg)?$bg:'default';
+
return $remote_api->{color}->($fg, $bg);
}
return $remote_api->{color}->($fg, $bg);
}