This commit is contained in:
Kovid Goyal 2018-11-20 08:49:07 +05:30
parent 9991dd6ce4
commit df11da74e9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -61,6 +61,9 @@ def color_from_int(val):
def parse_color_set(raw):
parts = raw.split(';')
lp = len(parts)
if lp % 2 != 0:
return
for c, spec in [parts[i:i + 2] for i in range(0, len(parts), 2)]:
try:
c = int(c)