Merge pull request #18620 from bfredl/multibar

fix(ui): make winbar work with floats and multigrid
This commit is contained in:
bfredl
2022-05-18 21:18:34 +02:00
committed by GitHub
19 changed files with 377 additions and 295 deletions

View File

@@ -349,7 +349,11 @@ void nvim_ui_try_resize_grid(uint64_t channel_id, Integer grid, Integer width, I
return;
}
ui_grid_resize((handle_T)grid, (int)width, (int)height, err);
if (grid == DEFAULT_GRID_HANDLE) {
nvim_ui_try_resize(channel_id, width, height, err);
} else {
ui_grid_resize((handle_T)grid, (int)width, (int)height, err);
}
}
/// Tells Nvim the number of elements displaying in the popumenu, to decide

View File

@@ -2140,8 +2140,8 @@ Array nvim__inspect_cell(Integer grid, Integer row, Integer col, Error *err)
}
}
if (row < 0 || row >= g->Rows
|| col < 0 || col >= g->Columns) {
if (row < 0 || row >= g->rows
|| col < 0 || col >= g->cols) {
return ret;
}
size_t off = g->line_offset[(size_t)row] + (size_t)col;