diff options
author | 2015-12-13 16:11:42 +0000 | |
---|---|---|
committer | 2015-12-13 16:11:42 +0000 | |
commit | 59790f9e28aa6e3b6fc468c8fd9d2e4b46c62c5e (patch) | |
tree | ab341457e01f2c91643ac0a5624eaa8dc3267903 /usr.bin/tmux/cmd-queue.c | |
parent | Remove the cmd_find_{session,window,pane,index} functions (which are (diff) | |
download | wireguard-openbsd-59790f9e28aa6e3b6fc468c8fd9d2e4b46c62c5e.tar.xz wireguard-openbsd-59790f9e28aa6e3b6fc468c8fd9d2e4b46c62c5e.zip |
If command returns error, report it.
Diffstat (limited to 'usr.bin/tmux/cmd-queue.c')
-rw-r--r-- | usr.bin/tmux/cmd-queue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-queue.c b/usr.bin/tmux/cmd-queue.c index ef63770292b..30a2d849c25 100644 --- a/usr.bin/tmux/cmd-queue.c +++ b/usr.bin/tmux/cmd-queue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-queue.c,v 1.31 2015/12/13 14:32:38 nicm Exp $ */ +/* $OpenBSD: cmd-queue.c,v 1.32 2015/12/13 16:11:42 nicm Exp $ */ /* * Copyright (c) 2013 Nicholas Marriott <nicm@users.sourceforge.net> @@ -199,6 +199,8 @@ cmdq_continue_one(struct cmd_q *cmdq) if (cmd_prepare_state(cmd, cmdq) != 0) goto error; retval = cmd->entry->exec(cmd, cmdq); + if (retval == CMD_RETURN_ERROR) + goto error; cmdq_guard(cmdq, "end", flags); return (retval); |