diff options
| author | Björn Linse <bjorn.linse@gmail.com> | 2018-02-11 13:01:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-11 13:01:31 +0100 |
| commit | 564ad60c0624941bdd63a6ed026cd03573c46f5a (patch) | |
| tree | f965a496f29fa35d17af6829238bc6e8aa65007e /src/nvim/ugrid.h | |
| parent | dd068928c1c39854a65108366c1a3106cfdb43c5 (diff) | |
| parent | 5d8da126d0b5ab7f550a74264ba434a2ad04280e (diff) | |
| download | rneovim-564ad60c0624941bdd63a6ed026cd03573c46f5a.tar.gz rneovim-564ad60c0624941bdd63a6ed026cd03573c46f5a.tar.bz2 rneovim-564ad60c0624941bdd63a6ed026cd03573c46f5a.zip | |
Merge pull request #7982 from bfredl/hlrefactor
Refactor HlAttrs so that termguicolors is implemented purely on TUI side
Diffstat (limited to 'src/nvim/ugrid.h')
| -rw-r--r-- | src/nvim/ugrid.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/ugrid.h b/src/nvim/ugrid.h index 1cf047502d..60c9068eb1 100644 --- a/src/nvim/ugrid.h +++ b/src/nvim/ugrid.h @@ -7,15 +7,17 @@ typedef struct ucell UCell; typedef struct ugrid UGrid; +#define CELLBYTES (4 * (MAX_MCO+1)) + struct ucell { - char data[6 * MAX_MCO + 1]; + char data[CELLBYTES + 1]; HlAttrs attrs; }; struct ugrid { int top, bot, left, right; int row, col; - int bg, fg; + HlAttrs clear_attrs; int width, height; HlAttrs attrs; UCell **cells; |
