Fix specifying options for layouts in the startup session file not working
Fixes #2520
This commit is contained in:
parent
4e7bf80447
commit
1f1b52b580
@ -22,6 +22,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
|
|||||||
- diff kitten: New option to control the background color for filler lines in
|
- diff kitten: New option to control the background color for filler lines in
|
||||||
the margin (:iss:`2518`)
|
the margin (:iss:`2518`)
|
||||||
|
|
||||||
|
- Fix specifying options for layouts in the startup session file not working
|
||||||
|
(:iss:`2520`)
|
||||||
|
|
||||||
|
|
||||||
0.17.2 [2020-03-29]
|
0.17.2 [2020-03-29]
|
||||||
--------------------
|
--------------------
|
||||||
|
|||||||
@ -53,7 +53,7 @@ class Session:
|
|||||||
self.tabs[-1].next_title = title.strip()
|
self.tabs[-1].next_title = title.strip()
|
||||||
|
|
||||||
def set_layout(self, val: str) -> None:
|
def set_layout(self, val: str) -> None:
|
||||||
if val not in all_layouts:
|
if val.partition(':')[0] not in all_layouts:
|
||||||
raise ValueError('{} is not a valid layout'.format(val))
|
raise ValueError('{} is not a valid layout'.format(val))
|
||||||
self.tabs[-1].layout = val
|
self.tabs[-1].layout = val
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user