From dbce9a8f2929480fd400006ec8aa5062ac7c4c41 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 16 Aug 2021 20:25:40 +0530 Subject: [PATCH] themes kitten: Fix only the first custom theme file being loaded Fixes #3938 --- docs/changelog.rst | 4 ++++ kittens/themes/collection.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 2630c80d3..2e223be7e 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -18,6 +18,10 @@ To update |kitty|, :doc:`follow the instructions `. 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 ` to easily change kitty themes. 0.23.0 [2021-08-16] ---------------------- diff --git a/kittens/themes/collection.py b/kittens/themes/collection.py index 95342d8c3..14701163c 100644 --- a/kittens/themes/collection.py +++ b/kittens/themes/collection.py @@ -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