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/ui_compositor.c | |
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/ui_compositor.c')
-rw-r--r-- | src/nvim/ui_compositor.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/ui_compositor.c b/src/nvim/ui_compositor.c index fcb63801e5..b88c355f42 100644 --- a/src/nvim/ui_compositor.c +++ b/src/nvim/ui_compositor.c @@ -413,9 +413,7 @@ static void compose_line(Integer row, Integer startcol, Integer endcol, LineFlag assert(endcol <= chk_width); assert(row < chk_height); - if (!(grid && grid == &default_grid)) { - // TODO(bfredl): too conservative, need check - // grid->line_wraps if grid->Width == Width + if (!(grid && (grid == &default_grid || (grid->comp_col == 0 && grid->cols == Columns)))) { flags = flags & ~kLineFlagWrap; } |