From 47c053cc39c9b3aa78eb4f64ec98c574506729ae Mon Sep 17 00:00:00 2001 From: Utkarsh Maheshwari Date: Thu, 28 Jun 2018 15:35:19 +0530 Subject: multigrid: Add multigrid documentation --- src/nvim/api/ui.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c index 48a4708dbf..c374bede99 100644 --- a/src/nvim/api/ui.c +++ b/src/nvim/api/ui.c @@ -245,8 +245,15 @@ static void ui_set_option(UI *ui, bool init, String name, Object value, name.data); } -/// Sets the inner "width" and "height" of the window grid identified by -/// "grid" handle. If the grid does not exist, set error. +/// Tell nvim to resize a grid. Nvim sends grid_resize event with the +/// requested grid size is within size limits and with maximum allowed size +/// otherwise. +/// +/// On invalid grid handle, fails with error. +/// +/// @param grid The handle of the grid to be changed. +/// @param width The new requested width. +/// @param height The new requested height. void nvim_ui_try_resize_grid(uint64_t channel_id, Integer grid, Integer width, Integer height, Error *error) FUNC_API_SINCE(5) FUNC_API_REMOTE_ONLY -- cgit