aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/api/ui.c')
-rw-r--r--src/nvim/api/ui.c11
1 files changed, 9 insertions, 2 deletions
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