mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-30 13:24:19 +00:00
panel: Use columns instead of lines for initial window size of
vertical panels
This commit is contained in:
parent
4d27b4766e
commit
9e12819f65
1 changed files with 1 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ def initial_window_size_func(opts: WindowSizeData, cached_values: dict[str, Any]
|
|||
window_width, window_height = monitor_width, monitor_height
|
||||
else:
|
||||
spacing = es('left') + es('right')
|
||||
window_width = int(cell_width * args.lines / xscale + (dpi_x / 72) * spacing + 1)
|
||||
window_width = int(cell_width * args.columns / xscale + (dpi_x / 72) * spacing + 1)
|
||||
window_height = monitor_height
|
||||
return window_width, window_height
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue