summaryrefslogtreecommitdiffstats
path: root/cmd-display-menu.c
diff options
context:
space:
mode:
authornicm <nicm>2021-08-13 17:03:29 +0000
committernicm <nicm>2021-08-13 17:03:29 +0000
commit614611a8bd65e82efccdf44d4f9c23c0f35ed293 (patch)
tree48efd72d5e1c3ed1c298b1a4d2933e05ac24d0c9 /cmd-display-menu.c
parent13a0da205b8c24995de11776b93244e914e4694d (diff)
Add -B flag to remove border from popup.
Diffstat (limited to 'cmd-display-menu.c')
-rw-r--r--cmd-display-menu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd-display-menu.c b/cmd-display-menu.c
index d021e477..c774284c 100644
--- a/cmd-display-menu.c
+++ b/cmd-display-menu.c
@@ -51,8 +51,8 @@ const struct cmd_entry cmd_display_popup_entry = {
.name = "display-popup",
.alias = "popup",
- .args = { "Cc:d:Eh:t:w:x:y:", 0, -1 },
- .usage = "[-CE] [-c target-client] [-d start-directory] [-h height] "
+ .args = { "BCc:d:Eh:t:w:x:y:", 0, -1 },
+ .usage = "[-BCE] [-c target-client] [-d start-directory] [-h height] "
CMD_TARGET_PANE_USAGE " [-w width] "
"[-x position] [-y position] [command]",
@@ -391,6 +391,8 @@ cmd_display_popup_exec(struct cmd *self, struct cmdq_item *item)
flags |= POPUP_CLOSEEXITZERO;
else if (args_has(args, 'E'))
flags |= POPUP_CLOSEEXIT;
+ if (args_has(args, 'B'))
+ flags |= POPUP_NOBORDER;
if (popup_display(flags, item, px, py, w, h, shellcmd, argc, argv, cwd,
tc, s, NULL, NULL) != 0)
return (CMD_RETURN_NORMAL);