=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/screen.c,v retrieving revision 1.65 retrieving revision 1.66 diff -c -r1.65 -r1.66 *** src/usr.bin/tmux/screen.c 2020/04/18 17:20:25 1.65 --- src/usr.bin/tmux/screen.c 2020/04/22 08:48:44 1.66 *************** *** 1,4 **** ! /* $OpenBSD: screen.c,v 1.65 2020/04/18 17:20:25 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: screen.c,v 1.66 2020/04/22 08:48:44 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 48,54 **** }; TAILQ_HEAD(screen_titles, screen_title_entry); ! static void screen_resize_y(struct screen *, u_int, int); static void screen_reflow(struct screen *, u_int, u_int *, u_int *); /* Free titles stack. */ --- 48,54 ---- }; TAILQ_HEAD(screen_titles, screen_title_entry); ! static void screen_resize_y(struct screen *, u_int, int, u_int *); static void screen_reflow(struct screen *, u_int, u_int *, u_int *); /* Free titles stack. */ *************** *** 254,260 **** reflow = 0; if (sy != screen_size_y(s)) ! screen_resize_y(s, sy, eat_empty); if (reflow) screen_reflow(s, sx, cx, cy); --- 254,260 ---- reflow = 0; if (sy != screen_size_y(s)) ! screen_resize_y(s, sy, eat_empty, cy); if (reflow) screen_reflow(s, sx, cx, cy); *************** *** 281,287 **** } static void ! screen_resize_y(struct screen *s, u_int sy, int eat_empty) { struct grid *gd = s->grid; u_int needed, available, oldy, i; --- 281,287 ---- } static void ! screen_resize_y(struct screen *s, u_int sy, int eat_empty, u_int *cy) { struct grid *gd = s->grid; u_int needed, available, oldy, i; *************** *** 330,335 **** --- 330,336 ---- if (available > needed) available = needed; grid_view_delete_lines(gd, 0, available, 8); + (*cy) -= available; } }