mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-27 19:31:46 +00:00
Accept window_id as an alias for id when matching
This commit is contained in:
parent
253de1eeca
commit
a79d024c09
1 changed files with 1 additions and 1 deletions
|
|
@ -425,7 +425,7 @@ class Window:
|
|||
return False
|
||||
assert not isinstance(pat, tuple)
|
||||
|
||||
if field == 'id':
|
||||
if field in ('id', 'window_id'):
|
||||
return True if pat.pattern == str(self.id) else False
|
||||
if field == 'pid':
|
||||
return True if pat.pattern == str(self.child.pid) else False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue