Check what start_chunks hands next_plan and tmux, keep other chunks' dead windows, and drop item_of's redundant re.ASCII
This commit is contained in:
@@ -41,7 +41,7 @@ def window_name(item_id: int) -> str:
|
||||
|
||||
def item_of(chunk: str) -> int | None:
|
||||
"""The ID of the plan item a chunk starts from; None for NO_ITEM."""
|
||||
named = re.fullmatch(r"item-([0-9]+)", chunk, re.ASCII)
|
||||
named = re.fullmatch(r"item-([0-9]+)", chunk)
|
||||
return int(named[1]) if named else None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user