Fix @close-tab not working with pipe based remote control

Fixes #3510
This commit is contained in:
Kovid Goyal 2021-04-22 10:23:04 +05:30
parent b9210a2ba4
commit 5d003ec772
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 3 deletions

View File

@ -13,6 +13,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- macOS: Prevent :kbd:`option` based shortcuts for being used for global menu
actions (:iss:`3515`)
- Fix ``kitty @ close-tab`` not working with pipe based remote control
(:iss:`3510`)
0.20.1 [2021-04-19]
----------------------

View File

@ -34,9 +34,8 @@ If specified close the tab this command is run in, rather than the active tab.
def response_from_kitty(self, boss: Boss, window: Optional[Window], payload_get: PayloadGetType) -> ResponseType:
for tab in self.tabs_for_match_payload(boss, window, payload_get):
if window:
if tab:
boss.close_tab_no_confirm(tab)
if tab:
boss.close_tab_no_confirm(tab)
close_tab = CloseTab()