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
parent 818b2176ef
commit a9b880921d

View File

@ -690,7 +690,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);