mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 07:24:41 +02:00
Fix #1156
This commit is contained in:
@@ -61,6 +61,9 @@ def color_from_int(val):
|
|||||||
|
|
||||||
def parse_color_set(raw):
|
def parse_color_set(raw):
|
||||||
parts = raw.split(';')
|
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)]:
|
for c, spec in [parts[i:i + 2] for i in range(0, len(parts), 2)]:
|
||||||
try:
|
try:
|
||||||
c = int(c)
|
c = int(c)
|
||||||
|
|||||||
Reference in New Issue
Block a user