From 99da7114fb602eab293173122bcc2f625d7514e9 Mon Sep 17 00:00:00 2001 From: usr <81042605+a-usr@users.noreply.github.com> Date: Mon, 5 Feb 2024 14:58:57 +0100 Subject: [PATCH 1/2] Update space.py: Fix Permanent blind mode --- smassh/ui/widgets/typing/space.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smassh/ui/widgets/typing/space.py b/smassh/ui/widgets/typing/space.py index a97e65dc..777462d7 100644 --- a/smassh/ui/widgets/typing/space.py +++ b/smassh/ui/widgets/typing/space.py @@ -91,7 +91,7 @@ def wrapper(space: "Space") -> RenderableType: def blind_mode(func): def wrapper(space: "Space", *args, **kwargs) -> Style: - if config_parser.get("blind_mode"): + if config_parser.get("blind_mode") in (True, "on"): return space.get_component_rich_style("--blind-match") return func(space, *args, **kwargs) From f4ed2745173060d067a656887ca5103f5f58a3c0 Mon Sep 17 00:00:00 2001 From: usr <81042605+a-usr@users.noreply.github.com> Date: Tue, 6 Feb 2024 09:29:00 +0100 Subject: [PATCH 2/2] Update space.py: Make requested changes --- smassh/ui/widgets/typing/space.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smassh/ui/widgets/typing/space.py b/smassh/ui/widgets/typing/space.py index 777462d7..9d75a79e 100644 --- a/smassh/ui/widgets/typing/space.py +++ b/smassh/ui/widgets/typing/space.py @@ -91,7 +91,7 @@ def wrapper(space: "Space") -> RenderableType: def blind_mode(func): def wrapper(space: "Space", *args, **kwargs) -> Style: - if config_parser.get("blind_mode") in (True, "on"): + if config_parser.get("blind_mode") == "on": return space.get_component_rich_style("--blind-match") return func(space, *args, **kwargs)