diff options
| author | bfredl <bjorn.linse@gmail.com> | 2023-09-20 10:18:40 +0200 |
|---|---|---|
| committer | bfredl <bjorn.linse@gmail.com> | 2023-09-20 10:24:07 +0200 |
| commit | ee20e9e66942ce38c8d4a8f4387ac1ec00d1d64f (patch) | |
| tree | dab6e43124174d74344509ec9009ae8aaa53ad00 /src/nvim/grid_defs.h | |
| parent | acde86d43690cf6451793250ae7ada4254bc2be3 (diff) | |
| download | rneovim-ee20e9e66942ce38c8d4a8f4387ac1ec00d1d64f.tar.gz rneovim-ee20e9e66942ce38c8d4a8f4387ac1ec00d1d64f.tar.bz2 rneovim-ee20e9e66942ce38c8d4a8f4387ac1ec00d1d64f.zip | |
refactor(grid): unused grid->line_wraps delenda est
This is not used as part of the logic to actually implement TUI line wrapping
In vim (especially gvim) it is used to emulate terminal-style text
selection. But in nvim we don't do that, and have no plans to reintroduce it.
Diffstat (limited to 'src/nvim/grid_defs.h')
| -rw-r--r-- | src/nvim/grid_defs.h | 7 |
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 } |