From 5dc14c5861a3a7d0d954a9b8ee450a1180b1fced Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 12 Nov 2019 10:24:37 +0530 Subject: [PATCH] Copy cwd when taking over tab --- kitty/tabs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/tabs.py b/kitty/tabs.py index 359c03387..cf43f9b74 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -75,7 +75,7 @@ class Tab: # {{{ self.startup(session_tab) def take_over_from(self, other_tab): - self.name = getattr(other_tab, 'name', '') + self.name, self.cwd = other_tab.name, other_tab.cwd self.enabled_layouts = list(other_tab.enabled_layouts) self._set_current_layout(other_tab._current_layout_name) self._last_used_layout = other_tab._last_used_layout