summaryrefslogtreecommitdiffstats
path: root/popup.c
diff options
context:
space:
mode:
authornicm <nicm>2022-02-22 11:01:57 +0000
committernicm <nicm>2022-02-22 11:01:57 +0000
commita9b880921dce2836611873a4ec85e9425dc08b40 (patch)
tree94f12e794e42da5720eccf3fef0b76de445b1f12 /popup.c
parent818b2176ef52a13867905d3d3e0269dc1b4d6fb4 (diff)
Use correct size for screen when popup is created without borders.
Diffstat (limited to 'popup.c')
-rw-r--r--popup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/popup.c b/popup.c
index a3b33dce..12f31c40 100644
--- a/popup.c
+++ b/popup.c
@@ -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);