Fix a regression that broke specifying OS window size in the session file
Fixes #2908
This commit is contained in:
parent
817f0997cf
commit
f6ece6522e
@ -21,6 +21,10 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
|
|||||||
dimensions or the thickness of the line is an odd number of pixels
|
dimensions or the thickness of the line is an odd number of pixels
|
||||||
(:iss:`2907`)
|
(:iss:`2907`)
|
||||||
|
|
||||||
|
- Fix a regression that broke specifying OS window size in the session file
|
||||||
|
(:iss:`2908`)
|
||||||
|
|
||||||
|
|
||||||
0.18.2 [2020-07-28]
|
0.18.2 [2020-07-28]
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
|||||||
@ -21,6 +21,7 @@ class WindowSizeOpts(NamedTuple):
|
|||||||
initial_window_height: Tuple[int, str]
|
initial_window_height: Tuple[int, str]
|
||||||
window_margin_width: FloatEdges
|
window_margin_width: FloatEdges
|
||||||
window_padding_width: FloatEdges
|
window_padding_width: FloatEdges
|
||||||
|
single_window_margin_width: FloatEdges
|
||||||
remember_window_size: bool
|
remember_window_size: bool
|
||||||
|
|
||||||
|
|
||||||
@ -124,7 +125,7 @@ def parse_session(raw: str, opts: Options, default_title: Optional[str] = None)
|
|||||||
elif cmd == 'os_window_size':
|
elif cmd == 'os_window_size':
|
||||||
from kitty.config_data import window_size
|
from kitty.config_data import window_size
|
||||||
w, h = map(window_size, rest.split(maxsplit=1))
|
w, h = map(window_size, rest.split(maxsplit=1))
|
||||||
ans.os_window_size = WindowSizeOpts(w, h, opts.window_margin_width, opts.window_padding_width, False)
|
ans.os_window_size = WindowSizeOpts(w, h, opts.window_margin_width, opts.window_padding_width, opts.single_window_margin_width, False)
|
||||||
elif cmd == 'os_window_class':
|
elif cmd == 'os_window_class':
|
||||||
ans.os_window_class = rest
|
ans.os_window_class = rest
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user