From fc9980903d4b24c1865fc437eb50268b25c66484 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 10 Mar 2018 23:42:06 +0530 Subject: [PATCH] Make layout names case-insensitive for enabled_layouts in sessions as well --- kitty/tabs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/tabs.py b/kitty/tabs.py index 6c6b51e1e..8cf1c7c16 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -38,7 +38,7 @@ class Tab: # {{{ raise Exception('No OS window with id {} found, or tab counter has wrapped'.format(self.os_window_id)) self.opts, self.args = tab_manager.opts, tab_manager.args self.name = getattr(session_tab, 'name', '') - self.enabled_layouts = list(getattr(session_tab, 'enabled_layouts', None) or self.opts.enabled_layouts) + self.enabled_layouts = [x.lower() for x in getattr(session_tab, 'enabled_layouts', None) or self.opts.enabled_layouts] self.borders = Borders(self.os_window_id, self.id, self.opts) self.windows = deque() self.active_window_idx = 0