From: nicm Date: Thu, 10 Jun 2021 07:59:31 +0000 (+0000) Subject: Do not clear region based on current cursor position, this is not X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=674decc033e05e0c4cb6b6f918f0c2382f2a3371;p=openbsd Do not clear region based on current cursor position, this is not necessary anymore and causes problems, GitHub issue 2735. --- 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 @@ -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? */