diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2022-02-22 11:01:58 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2022-02-22 11:01:58 +0000 |
commit | 36850f322454c29057972729cb9eb590473ecd18 (patch) | |
tree | 8aeb2ec52a4ee8861cbb1b3f4dd2f3d3021dca0b /usr.bin/tmux/popup.c | |
parent | 7389d04dcddce1d302817cef2f0012923fc2cd0d (diff) |
Use correct size for screen when popup is created without borders.
Diffstat (limited to 'usr.bin/tmux/popup.c')
-rw-r--r-- | usr.bin/tmux/popup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/popup.c b/usr.bin/tmux/popup.c index a9dfe37901c..e5136be7ed0 100644 --- a/usr.bin/tmux/popup.c +++ b/usr.bin/tmux/popup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: popup.c,v 1.45 2022/02/16 18:55:05 nicm Exp $ */ +/* $OpenBSD: popup.c,v 1.46 2022/02/22 11:01:57 nicm Exp $ */ /* * Copyright (c) 2020 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |