Do not clear the wrapped flag on linefeeds if it is already set - this

does not appear to be what applications want. GitHub issue 2478 and 2414.
This commit is contained in:
nicm 2020-12-07 09:23:57 +00:00
parent fd451aa796
commit ed786309cc

View File

@ -1240,8 +1240,6 @@ screen_write_linefeed(struct screen_write_ctx *ctx, int wrapped, u_int bg)
gl = grid_get_line(gd, gd->hsize + s->cy);
if (wrapped)
gl->flags |= GRID_LINE_WRAPPED;
else
gl->flags &= ~GRID_LINE_WRAPPED;
log_debug("%s: at %u,%u (region %u-%u)", __func__, s->cx, s->cy,
s->rupper, s->rlower);