mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-22 13:12:23 +00:00
Fix for session with empty enabled_layouts
This commit is contained in:
parent
af02b735e7
commit
d5d812ccfe
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ class Tab:
|
|||
self.opts, self.args = opts, args
|
||||
self.name = getattr(session_tab, 'name', '')
|
||||
self.on_title_change = on_title_change
|
||||
self.enabled_layouts = list((session_tab or opts).enabled_layouts)
|
||||
self.enabled_layouts = list(getattr(session_tab, 'enabled_layouts', None) or opts.enabled_layouts)
|
||||
self.borders = Borders(opts)
|
||||
self.windows = deque()
|
||||
self.active_window_idx = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue