Fix bold attr that may leak into next segment

This commit is contained in:
ZyX 2013-03-24 04:15:26 +04:00
parent b1f9edab4c
commit 83ed36903c
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class ShellRenderer(Renderer):
False, the argument is reset to the terminal defaults. If an argument
is a valid color or attribute, it's added to the ANSI escape code.
'''
ansi = []
ansi = [0]
if fg is not None:
if fg is False or fg[0] is False:
ansi += [39]