aboutsummaryrefslogtreecommitdiff
path: root/src/nvim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-11-28 17:01:27 +0800
committerGitHub <noreply@github.com>2023-11-28 17:01:27 +0800
commit71e954ad303eec25b67541f3a99392446f6de8b3 (patch)
treebf17577ba1c665176dc6dd0fe7ef86a4e444a763 /src/nvim
parent570367ac83cdceeee7d43dadcff7652bd5cc93c5 (diff)
downloadrneovim-71e954ad303eec25b67541f3a99392446f6de8b3.tar.gz
rneovim-71e954ad303eec25b67541f3a99392446f6de8b3.tar.bz2
rneovim-71e954ad303eec25b67541f3a99392446f6de8b3.zip
refactor(IWYU): fix includes for ugrid.h (#26267)
Diffstat (limited to 'src/nvim')
-rw-r--r--src/nvim/ugrid.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/nvim/ugrid.h b/src/nvim/ugrid.h
index 53278dbf7a..a82b0e1c9d 100644
--- a/src/nvim/ugrid.h
+++ b/src/nvim/ugrid.h
@@ -1,25 +1,17 @@
#pragma once
-#include "nvim/globals.h"
#include "nvim/grid_defs.h"
-#include "nvim/ui.h"
-struct ucell;
-struct ugrid;
-
-typedef struct ucell UCell;
-typedef struct ugrid UGrid;
-
-struct ucell {
+typedef struct ucell {
schar_T data;
sattr_T attr;
-};
+} UCell;
-struct ugrid {
+typedef struct ugrid {
int row, col;
int width, height;
UCell **cells;
-};
+} UGrid;
#define UGRID_FOREACH_CELL(grid, row, startcol, endcol, code) \
do { \