Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Jun 5, 2024
1 parent f824bb4 commit c02989a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/textual/_segment_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def blank_lines(count: int) -> list[list[Segment]]:
def apply_hatch(
segments: Iterable[Segment],
character: str,
hash_style: Style,
hatch_style: Style,
_split=_re_spaces.split,
) -> Iterable[Segment]:
"""Replace run of spaces with another character + style.
Expand All @@ -289,6 +289,6 @@ def apply_hatch(
for token in _split(text):
if token:
if token.isspace():
yield _Segment(character * len(token), hash_style)
yield _Segment(character * len(token), hatch_style)
else:
yield _Segment(token, style)

0 comments on commit c02989a

Please sign in to comment.