themes kitten: Fix only the first custom theme file being loaded
Fixes #3938
This commit is contained in:
parent
4333552523
commit
dbce9a8f29
2 changed files with 5 additions and 1 deletions
|
|
@ -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]
|
||||
----------------------
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue