Copy cwd when taking over tab

This commit is contained in:
Kovid Goyal
2019-11-12 10:24:37 +05:30
parent cab87f6fb2
commit 5dc14c5861

View File

@@ -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