mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 02:31:45 +02:00
Fix issues reported by ruff
This commit is contained in:
@@ -68,8 +68,8 @@ def marker_from_text(expression: str, color: int) -> MarkerFunc:
|
||||
def marker_from_function(func: Callable[[str], Iterable[Tuple[int, int, int]]]) -> MarkerFunc:
|
||||
def marker(text: str, left_address: int, right_address: int, color_address: int) -> Generator[None, None, None]:
|
||||
left, right, colorv = get_output_variables(left_address, right_address, color_address)
|
||||
for (l, r, c) in func(text):
|
||||
left.value = l
|
||||
for (ll, r, c) in func(text):
|
||||
left.value = ll
|
||||
right.value = r
|
||||
colorv.value = c
|
||||
yield
|
||||
|
||||
Reference in New Issue
Block a user