mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-22 15:19:13 +00:00
Fix #1156
This commit is contained in:
parent
9991dd6ce4
commit
df11da74e9
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue