diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-02-04 13:21:35 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-03-26 19:55:33 +0100 |
commit | fbaee922d1182f7bd7b43ddce7cf983b41021d14 (patch) | |
tree | 1b9aac36323812c9f9884928532ef53c50030dc6 /src/nvim/api/ui.c | |
parent | 2d50bf349883958bff1bb584fb3ad5cb97990993 (diff) | |
download | rneovim-fbaee922d1182f7bd7b43ddce7cf983b41021d14.tar.gz rneovim-fbaee922d1182f7bd7b43ddce7cf983b41021d14.tar.bz2 rneovim-fbaee922d1182f7bd7b43ddce7cf983b41021d14.zip |
doc [ci skip]
closes #9719
Diffstat (limited to 'src/nvim/api/ui.c')
-rw-r--r-- | src/nvim/api/ui.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c index 93502d7306..d50a91f261 100644 --- a/src/nvim/api/ui.c +++ b/src/nvim/api/ui.c @@ -29,8 +29,8 @@ typedef struct { uint64_t channel_id; Array buffer; - int hl_id; // current higlight for legacy put event - Integer cursor_row, cursor_col; // Intended visibule cursor position + int hl_id; // Current highlight for legacy put event. + Integer cursor_row, cursor_col; // Intended visible cursor position. // Position of legacy cursor, used both for drawing and visible user cursor. Integer client_row, client_col; @@ -264,20 +264,22 @@ static void ui_set_option(UI *ui, bool init, String name, Object value, /// /// On invalid grid handle, fails with error. /// +/// @param channel_id /// @param grid The handle of the grid to be changed. /// @param width The new requested width. /// @param height The new requested height. +/// @param[out] err Error details, if any void nvim_ui_try_resize_grid(uint64_t channel_id, Integer grid, Integer width, - Integer height, Error *error) + Integer height, Error *err) FUNC_API_SINCE(6) FUNC_API_REMOTE_ONLY { if (!pmap_has(uint64_t)(connected_uis, channel_id)) { - api_set_error(error, kErrorTypeException, + api_set_error(err, kErrorTypeException, "UI not attached to channel: %" PRId64, channel_id); return; } - ui_grid_resize((handle_T)grid, (int)width, (int)height, error); + ui_grid_resize((handle_T)grid, (int)width, (int)height, err); } /// Pushes data into UI.UIData, to be consumed later by remote_ui_flush(). |