Show More
@@ -332,9 +332,10 b' def _render_effects(ui, text, effects):' | |||||
332 | stop = _effect_str(ui, 'none') |
|
332 | stop = _effect_str(ui, 'none') | |
333 | else: |
|
333 | else: | |
334 | activeeffects = _activeeffects(ui) |
|
334 | activeeffects = _activeeffects(ui) | |
335 |
start = [str(activeeffects[e]) |
|
335 | start = [pycompat.bytestr(activeeffects[e]) | |
|
336 | for e in ['none'] + effects.split()] | |||
336 | start = '\033[' + ';'.join(start) + 'm' |
|
337 | start = '\033[' + ';'.join(start) + 'm' | |
337 | stop = '\033[' + str(activeeffects['none']) + 'm' |
|
338 | stop = '\033[' + pycompat.bytestr(activeeffects['none']) + 'm' | |
338 | return _mergeeffects(text, start, stop) |
|
339 | return _mergeeffects(text, start, stop) | |
339 |
|
340 | |||
340 | _ansieffectre = re.compile(br'\x1b\[[0-9;]*m') |
|
341 | _ansieffectre = re.compile(br'\x1b\[[0-9;]*m') |
General Comments 0
You need to be logged in to leave comments.
Login now