Handle default colors correctly in tmux renderer

This commit is contained in:
Kim Silkebækken 2012-12-13 14:58:21 +01:00
parent f552979125
commit d40e8e05c8
1 changed files with 8 additions and 2 deletions

View File

@ -12,10 +12,16 @@ class TmuxRenderer(Renderer):
tmux_attr = []
if fg is not None:
tmux_attr += ['fg=colour' + str(fg[0])]
if fg[0] is False:
tmux_attr += ['fg=default']
else:
tmux_attr += ['fg=colour' + str(fg[0])]
if bg is not None:
tmux_attr += ['bg=colour' + str(bg[0])]
if bg[0] is False:
tmux_attr += ['bg=default']
else:
tmux_attr += ['bg=colour' + str(bg[0])]
if attr is not None:
if attr is False: