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:
2026-11-16 12:20:43 +01:00
parent f3eaf19f62
commit fbd1b5e99d
3 changed files with 30 additions and 3 deletions
+1 -1
View File
@@ -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