Skip to content

Commit

Permalink
Use len instead of cell_len
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Feb 7, 2022
1 parent 1acee1f commit 386aa6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/textual/css/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def substitute_references(tokens: Iterator[Token]) -> Iterable[Token]:
reference_tokens = variables[ref_name]
variable_tokens.extend(reference_tokens)
ref_location = token.location
ref_length = cell_len(token.value)
ref_length = len(token.value)
for _token in reference_tokens:
yield _token.with_reference(
ReferencedBy(
Expand All @@ -285,7 +285,7 @@ def substitute_references(tokens: Iterator[Token]) -> Iterable[Token]:
if variable_name in variables:
variable_tokens = variables[variable_name]
ref_location = token.location
ref_length = cell_len(token.value)
ref_length = len(token.value)
for token in variable_tokens:
yield token.with_reference(
ReferencedBy(
Expand Down

0 comments on commit 386aa6d

Please sign in to comment.