diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-06-10 07:59:32 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-06-10 07:59:32 +0000 |
commit | 4d97b7d7f3e3bc0e8a9e961294c7bbb88e6d48ce (patch) | |
tree | a57a0bb34ced0672197f4c38da3398f1a7fa1bd0 /usr.bin/tmux | |
parent | 517beee0a1d3f453f20d462479fad8c981587133 (diff) |
Do not clear region based on current cursor position, this is not
necessary anymore and causes problems, GitHub issue 2735.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/tty.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index ba099ad3135..a09a3864b04 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.392 2021/06/10 07:43:44 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.393 2021/06/10 07:59:31 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1005,13 +1005,8 @@ tty_redraw_region(struct tty *tty, const struct tty_ctx *ctx) return; } - if (ctx->ocy < ctx->orupper || ctx->ocy > ctx->orlower) { - for (i = ctx->ocy; i < ctx->sy; i++) - tty_draw_pane(tty, ctx, i); - } else { - for (i = ctx->orupper; i <= ctx->orlower; i++) - tty_draw_pane(tty, ctx, i); - } + for (i = ctx->orupper; i <= ctx->orlower; i++) + tty_draw_pane(tty, ctx, i); } /* Is this position visible in the pane? */ |