perf(ui): unpack grid_line (screen contents) directly

This commit is contained in:
bfredl
2022-06-29 22:49:37 +02:00
parent be3d2f5125
commit 0b63f5afad
7 changed files with 175 additions and 119 deletions

View File

@@ -2,12 +2,18 @@
#define NVIM_UI_CLIENT_H
#include "nvim/api/private/defs.h"
#include "nvim/grid_defs.h"
typedef struct {
const char *name;
void (*fn)(Array args);
} UIClientHandler;
// Temporary buffer for converting a single grid_line event
EXTERN size_t grid_line_buf_size INIT(= 0);
EXTERN schar_T *grid_line_buf_char INIT(= NULL);
EXTERN sattr_T *grid_line_buf_attr INIT(= NULL);
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "ui_client.h.generated.h"