mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 10:12:17 +02:00
Accept window_id as an alias for id when matching
This commit is contained in:
@@ -425,7 +425,7 @@ class Window:
|
|||||||
return False
|
return False
|
||||||
assert not isinstance(pat, tuple)
|
assert not isinstance(pat, tuple)
|
||||||
|
|
||||||
if field == 'id':
|
if field in ('id', 'window_id'):
|
||||||
return True if pat.pattern == str(self.id) else False
|
return True if pat.pattern == str(self.id) else False
|
||||||
if field == 'pid':
|
if field == 'pid':
|
||||||
return True if pat.pattern == str(self.child.pid) else False
|
return True if pat.pattern == str(self.child.pid) else False
|
||||||
|
|||||||
Reference in New Issue
Block a user