mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-28 04:13:44 +00:00
Fix swapped row/col when biasing grid layout
This commit is contained in:
parent
965dde599e
commit
2803e45380
1 changed files with 3 additions and 3 deletions
|
|
@ -503,14 +503,14 @@ class Grid(Layout): # {{{
|
|||
|
||||
def on_col_done(col_windows):
|
||||
nonlocal col_num, row_num
|
||||
col_num = 0
|
||||
row_num += 1
|
||||
row_num = 0
|
||||
col_num += 1
|
||||
|
||||
for window_idx, xstart, xnum, ystart, ynum in self.layout_windows(
|
||||
num_windows, nrows, ncols, special_rows, special_col, on_col_done):
|
||||
if idx == window_idx:
|
||||
return row_num, col_num
|
||||
col_num += 1
|
||||
row_num += 1
|
||||
|
||||
row_num, col_num = position_for_window_idx(idx)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue