summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/spawn.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2021-03-02 10:56:45 +0000
committernicm <nicm@openbsd.org>2021-03-02 10:56:45 +0000
commit309e64039e3e18962adf4f1dc88c631caae428a2 (patch)
tree797312e13a30f8f04701367458af6af6afdb847c /usr.bin/tmux/spawn.c
parentFix the deadlock between uvn_io() and uvn_flush() by restarting the fault. (diff)
downloadwireguard-openbsd-309e64039e3e18962adf4f1dc88c631caae428a2.tar.xz
wireguard-openbsd-309e64039e3e18962adf4f1dc88c631caae428a2.zip
Drop support for popups where the content is provided directly to tmux
(which does not have many practical uses) and only support running a program in the popup. display-popup is now simpler and can accept multiple arguments to avoid escaping problems (like the other commands).
Diffstat (limited to 'usr.bin/tmux/spawn.c')
-rw-r--r--usr.bin/tmux/spawn.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/tmux/spawn.c b/usr.bin/tmux/spawn.c
index 0865fcf3145..5a03c5fa80c 100644
--- a/usr.bin/tmux/spawn.c
+++ b/usr.bin/tmux/spawn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spawn.c,v 1.25 2021/02/19 09:09:16 nicm Exp $ */
+/* $OpenBSD: spawn.c,v 1.26 2021/03/02 10:56:45 nicm Exp $ */
/*
* Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -265,8 +265,9 @@ spawn_pane(struct spawn_context *sc, char **cause)
}
/*
- * Now we have a pane with nothing running in it ready for the new process.
- * Work out the command and arguments and store the working directory.
+ * Now we have a pane with nothing running in it ready for the new
+ * process. Work out the command and arguments and store the working
+ * directory.
*/
if (sc->argc == 0 && (~sc->flags & SPAWN_RESPAWN)) {
cmd = options_get_string(s->options, "default-command");