multigrid: reorganize types and global varaibles

This commit is contained in:
Björn Linse
2018-12-23 14:35:23 +01:00
parent 820c81e638
commit 1cec5542a8
9 changed files with 82 additions and 70 deletions

View File

@@ -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,

View File

@@ -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().