diff --git a/meshterm/ui/tui/session.py b/meshterm/ui/tui/session.py index 72e0c93..d56b3b1 100644 --- a/meshterm/ui/tui/session.py +++ b/meshterm/ui/tui/session.py @@ -975,6 +975,7 @@ class TuiSession: # ⇧H only appears at all once something is hidden, which is exactly the state where # a reader needs to be told how to undo it, and by then they have already found h. screen.spare_hint_atoms = ("←→ scroll", "h hide") + def redraw(new_items: list) -> None: """Swap the rows and repaint. The reader keeps their place, by value.""" screen.replace_items(new_items) diff --git a/tests/test_logo.py b/tests/test_logo.py index 5ee5b78..f80597f 100644 --- a/tests/test_logo.py +++ b/tests/test_logo.py @@ -37,10 +37,7 @@ def _params(text: str) -> list[list[str]]: def _brights(text: str) -> int: """How many sequences in `text` name a bright-bank foreground.""" - return sum( - any(p.isdigit() and 90 <= int(p) <= 97 for p in parts) - for parts in _params(text) - ) + return sum(any(p.isdigit() and 90 <= int(p) <= 97 for p in parts) for parts in _params(text)) # -- a bare intensity change ----------------------------------------------------------