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
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 1 deletions

View file

@ -18,6 +18,10 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
by recency. ``recent:0`` matches the active window/tab, ``recent:1`` matches
the previous window/tab and so on
- themes kitten: Fix only the first custom theme file being loaded correctly
(:iss:`3938`)
- A new :doc:`themes kitten </kittens/themes>` to easily change kitty themes.
0.23.0 [2021-08-16]
----------------------

View file

@ -335,7 +335,7 @@ def load_from_dir(self, path: str) -> None:
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