diff --git a/kittens/themes/collection.py b/kittens/themes/collection.py index b1d25afdd..362fe71fa 100644 --- a/kittens/themes/collection.py +++ b/kittens/themes/collection.py @@ -67,7 +67,7 @@ mark2_background mark3_foreground mark3_background '''.splitlines())) - pat = f'^({"|".join(color_conf_items)})' + pat = fr'^\s*({"|".join(color_conf_items)})\b' return re.sub(pat, r'# \1', nraw, flags=re.MULTILINE)