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
2 changed files with 5 additions and 3 deletions

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()