Use correct size for screen when popup is created without borders.

This commit is contained in:
nicm 2022-02-22 11:01:57 +00:00 committed by Nicholas Marriott
parent 4893edd5d6
commit f74a98cd07

View File

@ -689,7 +689,7 @@ popup_display(int flags, enum box_lines lines, struct cmdq_item *item, u_int px,
}
pd->border_cell.attr = 0;
screen_init(&pd->s, sx - 2, sy - 2, 0);
screen_init(&pd->s, jx, jy, 0);
colour_palette_init(&pd->palette);
colour_palette_from_option(&pd->palette, global_w_options);