aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/ui.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-03-26 21:36:33 +0100
committerGitHub <noreply@github.com>2019-03-26 21:36:33 +0100
commitbe676eccf1b85719441c66b0ced4f2234335f0ff (patch)
tree66e684b1af977b9660388ae22ed109daaaa34597 /src/nvim/api/ui.c
parent2d50bf349883958bff1bb584fb3ad5cb97990993 (diff)
parentbec40660330764c59731fbb736af58ffc445bd8c (diff)
downloadrneovim-be676eccf1b85719441c66b0ced4f2234335f0ff.tar.gz
rneovim-be676eccf1b85719441c66b0ced4f2234335f0ff.tar.bz2
rneovim-be676eccf1b85719441c66b0ced4f2234335f0ff.zip
Merge #9600 'doc, gen_vimdoc.py'
Diffstat (limited to 'src/nvim/api/ui.c')
-rw-r--r--src/nvim/api/ui.c12
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().