[F] Fix incorrect coloring when the first color isn't ${c1}
This commit is contained in:
parent
f57ad70a20
commit
bd5d76167e
2 changed files with 6 additions and 5 deletions
|
|
@ -288,8 +288,9 @@ def get_fore_back(distro: str | None = None) -> tuple[int, int] | None:
|
|||
distro = GLOBAL_CFG.override_distro
|
||||
if not distro:
|
||||
distro = get_distro_name().lower()
|
||||
distro = distro.lower()
|
||||
for k, v in fore_back.items():
|
||||
if distro.startswith(k.lower()):
|
||||
if distro == k.lower():
|
||||
return v
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue