mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 09:15:57 +02:00
Fix #1156
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user