diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-12-07 09:23:58 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-12-07 09:23:58 +0000 |
commit | 0e84c32328e23be18e4e5f0b57618ae3e39caf15 (patch) | |
tree | f85aed9c801e97342a8492b90aa09139f7831cee /usr.bin/tmux/screen-write.c | |
parent | 0aed0243f389089afe5dd42563d6878828044449 (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 'usr.bin/tmux/screen-write.c')
-rw-r--r-- | usr.bin/tmux/screen-write.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c index 755d49ae224..ca53fb3395f 100644 --- a/usr.bin/tmux/screen-write.c +++ b/usr.bin/tmux/screen-write.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-write.c,v 1.188 2020/11/09 08:42:43 nicm Exp $ */ +/* $OpenBSD: screen-write.c,v 1.189 2020/12/07 09:23:57 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |