multigrid: Put everything on default_grid if not ext_multigrid

This commit is contained in:
Utkarsh Maheshwari
2018-06-19 11:45:10 +05:30
committed by Björn Linse
parent d5754eae02
commit 0432e1586e
4 changed files with 82 additions and 31 deletions

View File

@@ -440,13 +440,16 @@ Array ui_array(void)
return all_uis;
}
void ui_grid_resize(GridHandle grid_handle, int width, int height)
void ui_grid_resize(GridHandle grid_handle, int width, int height, Error *error)
{
win_T *wp = get_win_by_grid_handle(grid_handle);
if (grid_handle == DEFAULT_GRID_HANDLE) {
screen_resize(width, height);
return;
}
win_T *wp = get_win_by_grid_handle(grid_handle);
if (wp == NULL) {
//TODO(utkarshme): error out
abort();
api_set_error(error, kErrorTypeValidation, "No window with the given handle");
return;
}