diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-06-09 14:46:24 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-06-09 14:46:24 +0100 |
commit | 607e6b1c3339b97408be3d6c2c93a82fcee5251a (patch) | |
tree | 230711d965a728a8f8e9c6c83f97250f1d92821e | |
parent | 7a236869ba05b5a8ace0b57b08ec839fbafc71aa (diff) | |
download | rtmux-607e6b1c3339b97408be3d6c2c93a82fcee5251a.tar.gz rtmux-607e6b1c3339b97408be3d6c2c93a82fcee5251a.tar.bz2 rtmux-607e6b1c3339b97408be3d6c2c93a82fcee5251a.zip |
Do not clear region based on current cursor position, this is not necessary
anymore and causes problems, GitHub issue 2735.
-rw-r--r-- | tty.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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? */ |