Merge branch 'fix-macos-new-tab' of https://github.com/page-down/kitty

This commit is contained in:
Kovid Goyal 2022-02-07 12:07:17 +05:30
commit a3b046fdcd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1826,6 +1826,8 @@ class Boss:
self._create_tab(list(args), cwd_from=cwd_from) self._create_tab(list(args), cwd_from=cwd_from)
def new_tab_with_wd(self, wd: str) -> None: def new_tab_with_wd(self, wd: str) -> None:
if not self.os_window_map:
self.add_os_window()
special_window = SpecialWindow(None, cwd=wd) special_window = SpecialWindow(None, cwd=wd)
self._new_tab(special_window) self._new_tab(special_window)