Skip to content

Commit f6ece65

Browse files
committed
Fix a regression that broke specifying OS window size in the session file
Fixes #2908
1 parent 817f099 commit f6ece65

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/changelog.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
2121
dimensions or the thickness of the line is an odd number of pixels
2222
(:iss:`2907`)
2323

24+
- Fix a regression that broke specifying OS window size in the session file
25+
(:iss:`2908`)
26+
27+
2428
0.18.2 [2020-07-28]
2529
--------------------
2630

kitty/session.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class WindowSizeOpts(NamedTuple):
2121
initial_window_height: Tuple[int, str]
2222
window_margin_width: FloatEdges
2323
window_padding_width: FloatEdges
24+
single_window_margin_width: FloatEdges
2425
remember_window_size: bool
2526

2627

@@ -124,7 +125,7 @@ def finalize_session(ans: Session) -> Session:
124125
elif cmd == 'os_window_size':
125126
from kitty.config_data import window_size
126127
w, h = map(window_size, rest.split(maxsplit=1))
127-
ans.os_window_size = WindowSizeOpts(w, h, opts.window_margin_width, opts.window_padding_width, False)
128+
ans.os_window_size = WindowSizeOpts(w, h, opts.window_margin_width, opts.window_padding_width, opts.single_window_margin_width, False)
128129
elif cmd == 'os_window_class':
129130
ans.os_window_class = rest
130131
else:

0 commit comments

Comments
 (0)