From f6ece6522e89eeddf97ee5a6a434ff9ce628dff8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 10 Aug 2020 21:55:54 +0530 Subject: [PATCH] Fix a regression that broke specifying OS window size in the session file Fixes #2908 --- docs/changelog.rst | 4 ++++ kitty/session.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 5e6aab243..5bea0ce76 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -21,6 +21,10 @@ To update |kitty|, :doc:`follow the instructions `. dimensions or the thickness of the line is an odd number of pixels (:iss:`2907`) +- Fix a regression that broke specifying OS window size in the session file + (:iss:`2908`) + + 0.18.2 [2020-07-28] -------------------- diff --git a/kitty/session.py b/kitty/session.py index 5d85bddd6..7affee1a1 100644 --- a/kitty/session.py +++ b/kitty/session.py @@ -21,6 +21,7 @@ class WindowSizeOpts(NamedTuple): initial_window_height: Tuple[int, str] window_margin_width: FloatEdges window_padding_width: FloatEdges + single_window_margin_width: FloatEdges 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': from kitty.config_data import window_size 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': ans.os_window_class = rest else: