From 0432e1586ef0f9dd5e473cee07787ed5bb880570 Mon Sep 17 00:00:00 2001 From: Utkarsh Maheshwari Date: Tue, 19 Jun 2018 11:45:10 +0530 Subject: multigrid: Put everything on default_grid if not ext_multigrid --- src/nvim/ui.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/nvim/ui.c') diff --git a/src/nvim/ui.c b/src/nvim/ui.c index 24557c5d0b..74814bf0ae 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -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; } -- cgit