process_ansi: fix color1/color2 variable switch

This commit is contained in:
Gordon Shumway 2019-07-16 22:56:47 -04:00 committed by GitHub
parent 57f24f9a61
commit e2e92a7076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -619,12 +619,12 @@ class ASCII(callbacks.Plugin):
continue
elif int(ansi[i]) > 29 and int(ansi[i]) < 38:
if effect == 1 or ansi[-1] == '1':
x16color2 = self.x16colors['{0};1'.format(ansi[i])]
x16color1 = self.x16colors['{0};1'.format(ansi[i])]
effect = None
i += 1
continue
else:
x16color2 = self.x16colors[ansi[i]]
x16color1 = self.x16colors[ansi[i]]
i += 1
continue
elif int(ansi[i]) > 39 and int(ansi[i]) < 48: