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.
This commit is contained in:
bfredl
2023-09-20 10:18:40 +02:00
parent acde86d436
commit ee20e9e669
5 changed files with 2 additions and 33 deletions

View File

@@ -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;
}