mirror of
https://github.com/powerline/powerline.git
synced 2025-07-23 13:55:45 +02:00
Handle default colors correctly in tmux renderer
This commit is contained in:
parent
f552979125
commit
d40e8e05c8
@ -12,9 +12,15 @@ class TmuxRenderer(Renderer):
|
|||||||
tmux_attr = []
|
tmux_attr = []
|
||||||
|
|
||||||
if fg is not None:
|
if fg is not None:
|
||||||
|
if fg[0] is False:
|
||||||
|
tmux_attr += ['fg=default']
|
||||||
|
else:
|
||||||
tmux_attr += ['fg=colour' + str(fg[0])]
|
tmux_attr += ['fg=colour' + str(fg[0])]
|
||||||
|
|
||||||
if bg is not None:
|
if bg is not None:
|
||||||
|
if bg[0] is False:
|
||||||
|
tmux_attr += ['bg=default']
|
||||||
|
else:
|
||||||
tmux_attr += ['bg=colour' + str(bg[0])]
|
tmux_attr += ['bg=colour' + str(bg[0])]
|
||||||
|
|
||||||
if attr is not None:
|
if attr is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user