diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2023-11-30 20:35:25 +0000 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2023-11-30 20:35:25 +0000 |
commit | 1b7b916b7631ddf73c38e3a0070d64e4636cb2f3 (patch) | |
tree | cd08258054db80bb9a11b1061bb091c70b76926a /src/nvim/ugrid.h | |
parent | eaa89c11d0f8aefbb512de769c6c82f61a8baca3 (diff) | |
parent | 4a8bf24ac690004aedf5540fa440e788459e5e34 (diff) | |
download | rneovim-aucmd_textputpost.tar.gz rneovim-aucmd_textputpost.tar.bz2 rneovim-aucmd_textputpost.zip |
Merge remote-tracking branch 'upstream/master' into aucmd_textputpostaucmd_textputpost
Diffstat (limited to 'src/nvim/ugrid.h')
-rw-r--r-- | src/nvim/ugrid.h | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/src/nvim/ugrid.h b/src/nvim/ugrid.h index a85a6fb4a8..54cd33e58f 100644 --- a/src/nvim/ugrid.h +++ b/src/nvim/ugrid.h @@ -1,30 +1,17 @@ -#ifndef NVIM_UGRID_H -#define NVIM_UGRID_H +#pragma once -#include "nvim/globals.h" -#include "nvim/grid_defs.h" -#include "nvim/ui.h" +#include "nvim/types_defs.h" -struct ucell; -struct ugrid; - -typedef struct ucell UCell; -typedef struct ugrid UGrid; - -#define CELLBYTES (sizeof(schar_T)) - -struct ucell { - char data[CELLBYTES + 1]; +typedef struct ucell { + schar_T data; sattr_T attr; -}; +} UCell; -struct ugrid { +typedef struct ugrid { int row, col; int width, height; UCell **cells; -}; - -// -V:UGRID_FOREACH_CELL:625 +} UGrid; #define UGRID_FOREACH_CELL(grid, row, startcol, endcol, code) \ do { \ @@ -39,4 +26,3 @@ struct ugrid { #ifdef INCLUDE_GENERATED_DECLARATIONS # include "ugrid.h.generated.h" #endif -#endif // NVIM_UGRID_H |