From 386aa6dacc885880b8b2bfcecbc1c41beb331337 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Mon, 7 Feb 2022 15:35:05 +0000 Subject: [PATCH] Use len instead of cell_len --- src/textual/css/parse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/textual/css/parse.py b/src/textual/css/parse.py index af600d2625..eb0b10ae43 100644 --- a/src/textual/css/parse.py +++ b/src/textual/css/parse.py @@ -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( @@ -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(