themes kitten: Fix only the first custom theme file being loaded

Fixes #3938
This commit is contained in:
Kovid Goyal
2021-08-16 20:25:40 +05:30
parent 4333552523
commit dbce9a8f29
2 changed files with 5 additions and 1 deletions

View File

@@ -335,7 +335,7 @@ class Themes:
d = parse_theme(name, raw)
except (Exception, SystemExit):
continue
t = Theme(lambda: raw)
t = Theme(raw.__str__)
t.apply_dict(d)
if t.name:
self.themes[t.name] = t