mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 20:14:12 +02:00
Port layout tests to new API
This commit is contained in:
@@ -17,6 +17,11 @@ WindowOrId = Union[WindowType, int]
|
||||
group_id_counter = count(start=1)
|
||||
|
||||
|
||||
def reset_group_id_counter() -> None:
|
||||
global group_id_counter
|
||||
group_id_counter = count(start=1)
|
||||
|
||||
|
||||
def wrap_increment(val: int, num: int, delta: int) -> int:
|
||||
mult = -1 if delta < 0 else 1
|
||||
delta = mult * (abs(delta) % num)
|
||||
|
||||
Reference in New Issue
Block a user