summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2020-12-07 09:23:57 +0000
committernicm <nicm>2020-12-07 09:23:57 +0000
commited786309ccc7ceb2077f658e689a5f35549bb2bc (patch)
tree454d09e0eeb1941968d116b2326adc37ef75337c /screen-write.c
parentfd451aa7962f399250fd166f207451fcf4b9cb94 (diff)
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.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/screen-write.c b/screen-write.c
index ab6a020c..92f1aa39 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -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);