diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-12-23 14:35:23 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2018-12-31 16:24:07 +0100 |
commit | 1cec5542a83baf04848e37475b9b0b7f50e47284 (patch) | |
tree | b3ce77a147675ea07f95d9a237ca591fd4e2a0ad /src/nvim/api | |
parent | 820c81e638768994f4e51fdb87eadf31664048ff (diff) | |
download | rneovim-1cec5542a83baf04848e37475b9b0b7f50e47284.tar.gz rneovim-1cec5542a83baf04848e37475b9b0b7f50e47284.tar.bz2 rneovim-1cec5542a83baf04848e37475b9b0b7f50e47284.zip |
multigrid: reorganize types and global varaibles
Diffstat (limited to 'src/nvim/api')
-rw-r--r-- | src/nvim/api/private/defs.h | 3 | ||||
-rw-r--r-- | src/nvim/api/ui.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/api/private/defs.h b/src/nvim/api/private/defs.h index 390b7e8363..feca140547 100644 --- a/src/nvim/api/private/defs.h +++ b/src/nvim/api/private/defs.h @@ -6,6 +6,7 @@ #include <string.h> #include "nvim/func_attr.h" +#include "nvim/types.h" #define ARRAY_DICT_INIT {.size = 0, .capacity = 0, .items = NULL} #define STRING_INIT {.data = NULL, .size = 0} @@ -20,8 +21,6 @@ # define DictionaryOf(...) Dictionary #endif -typedef int handle_T; - // Basic types typedef enum { kErrorTypeNone = -1, diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c index c374bede99..4c55a56242 100644 --- a/src/nvim/api/ui.c +++ b/src/nvim/api/ui.c @@ -264,7 +264,7 @@ void nvim_ui_try_resize_grid(uint64_t channel_id, Integer grid, Integer width, return; } - ui_grid_resize((GridHandle)grid, (int)width, (int)height, error); + ui_grid_resize((handle_T)grid, (int)width, (int)height, error); } /// Pushes data into UI.UIData, to be consumed later by remote_ui_flush(). |