=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/screen-redraw.c,v retrieving revision 1.81 retrieving revision 1.82 diff -c -r1.81 -r1.82 *** src/usr.bin/tmux/screen-redraw.c 2020/07/22 06:21:46 1.81 --- src/usr.bin/tmux/screen-redraw.c 2020/12/07 09:46:58 1.82 *************** *** 1,4 **** ! /* $OpenBSD: screen-redraw.c,v 1.81 2020/07/22 06:21:46 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: screen-redraw.c,v 1.82 2020/12/07 09:46:58 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 407,413 **** struct format_tree *ft; char *expanded; int pane_status = rctx->pane_status; ! u_int width, i, cell_type, top, px, py; struct screen_write_ctx ctx; struct screen old; --- 407,413 ---- struct format_tree *ft; char *expanded; int pane_status = rctx->pane_status; ! u_int width, i, cell_type, px, py; struct screen_write_ctx ctx; struct screen old; *************** *** 432,447 **** screen_write_start(&ctx, &wp->status_screen); - if (rctx->statustop) - top = rctx->statuslines; - else - top = 0; for (i = 0; i < width; i++) { px = wp->xoff + 2 + i; if (rctx->pane_status == PANE_STATUS_TOP) ! py = top + wp->yoff - 1; else ! py = top + wp->yoff + wp->sy; cell_type = screen_redraw_type_of_cell(c, px, py, pane_status); screen_redraw_border_set(wp, pane_lines, cell_type, &gc); screen_write_cell(&ctx, &gc); --- 432,443 ---- screen_write_start(&ctx, &wp->status_screen); for (i = 0; i < width; i++) { px = wp->xoff + 2 + i; if (rctx->pane_status == PANE_STATUS_TOP) ! py = wp->yoff - 1; else ! py = wp->yoff + wp->sy; cell_type = screen_redraw_type_of_cell(c, px, py, pane_status); screen_redraw_border_set(wp, pane_lines, cell_type, &gc); screen_write_cell(&ctx, &gc);