aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/grid_defs.h
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-09-20 12:17:10 +0200
committerGitHub <noreply@github.com>2023-09-20 12:17:10 +0200
commit50d5fcc0bc1a3a67b9c3cc7066d97593ea3cc22d (patch)
tree5d13244d83f5687f77eeffc2d59594e9d51e24fd /src/nvim/grid_defs.h
parent351dda5e26313f88edea2a01b687f12f4fd1c790 (diff)
parentee20e9e66942ce38c8d4a8f4387ac1ec00d1d64f (diff)
downloadrneovim-50d5fcc0bc1a3a67b9c3cc7066d97593ea3cc22d.tar.gz
rneovim-50d5fcc0bc1a3a67b9c3cc7066d97593ea3cc22d.tar.bz2
rneovim-50d5fcc0bc1a3a67b9c3cc7066d97593ea3cc22d.zip
Merge pull request #25261 from bfredl/nolinewrap
refactor(grid): unused grid->line_wraps delenda est
Diffstat (limited to 'src/nvim/grid_defs.h')
-rw-r--r--src/nvim/grid_defs.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nvim/grid_defs.h b/src/nvim/grid_defs.h
index b0d1dafd29..207bf72816 100644
--- a/src/nvim/grid_defs.h
+++ b/src/nvim/grid_defs.h
@@ -52,10 +52,6 @@ enum {
/// line_offset[n] is the offset from chars[], attrs[] and vcols[] for the start
/// of line 'n'. These offsets are in general not linear, as full screen scrolling
/// is implemented by rotating the offsets in the line_offset array.
-///
-/// line_wraps[] is an array of boolean flags indicating if the screen line
-/// wraps to the next line. It can only be true if a window occupies the entire
-/// screen width.
typedef struct ScreenGrid ScreenGrid;
struct ScreenGrid {
handle_T handle;
@@ -64,7 +60,6 @@ struct ScreenGrid {
sattr_T *attrs;
colnr_T *vcols;
size_t *line_offset;
- char *line_wraps;
// last column that was drawn (not cleared with the default background).
// only used when "throttled" is set. Not allocated by grid_alloc!
@@ -120,7 +115,7 @@ struct ScreenGrid {
bool comp_disabled;
};
-#define SCREEN_GRID_INIT { 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, false, \
+#define SCREEN_GRID_INIT { 0, NULL, NULL, NULL, NULL, NULL, 0, 0, false, \
false, 0, 0, NULL, false, true, 0, \
0, 0, 0, 0, 0, false }