diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-10-14 22:14:23 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-10-14 22:14:23 +0000 |
commit | 7a01d0fd7a51152adf7bf9c41b69f4e1810846a7 (patch) | |
tree | 49d01266139f4b1abc026283b682ea1d04c54269 /usr.bin | |
parent | 7208db85bf9d1098e9186149a922dfec263938e1 (diff) |
Add CMD_AFTERHOOK flag to the easy commands that don't need any special handling.
Diffstat (limited to 'usr.bin')
31 files changed, 76 insertions, 75 deletions
diff --git a/usr.bin/tmux/cmd-bind-key.c b/usr.bin/tmux/cmd-bind-key.c index 3300782c054..001b47b3811 100644 --- a/usr.bin/tmux/cmd-bind-key.c +++ b/usr.bin/tmux/cmd-bind-key.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-bind-key.c,v 1.29 2016/10/12 14:50:14 nicm Exp $ */ +/* $OpenBSD: cmd-bind-key.c,v 1.30 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -40,7 +40,7 @@ const struct cmd_entry cmd_bind_key_entry = { .usage = "[-cnr] [-t mode-table] [-T key-table] key " "command [arguments]", - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_bind_key_exec }; diff --git a/usr.bin/tmux/cmd-capture-pane.c b/usr.bin/tmux/cmd-capture-pane.c index 57573b1fc80..3daa87d2b3b 100644 --- a/usr.bin/tmux/cmd-capture-pane.c +++ b/usr.bin/tmux/cmd-capture-pane.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-capture-pane.c,v 1.39 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-capture-pane.c,v 1.40 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2009 Jonathan Alvarado <radobobo@users.sourceforge.net> @@ -46,7 +46,7 @@ const struct cmd_entry cmd_capture_pane_entry = { .tflag = CMD_PANE, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_capture_pane_exec }; diff --git a/usr.bin/tmux/cmd-clear-history.c b/usr.bin/tmux/cmd-clear-history.c index 53b93f3239f..9c51b4ec5a9 100644 --- a/usr.bin/tmux/cmd-clear-history.c +++ b/usr.bin/tmux/cmd-clear-history.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-clear-history.c,v 1.19 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-clear-history.c,v 1.20 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -35,7 +35,7 @@ const struct cmd_entry cmd_clear_history_entry = { .tflag = CMD_PANE, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_clear_history_exec }; diff --git a/usr.bin/tmux/cmd-copy-mode.c b/usr.bin/tmux/cmd-copy-mode.c index 71a79d7dc8d..dcbebcfec2c 100644 --- a/usr.bin/tmux/cmd-copy-mode.c +++ b/usr.bin/tmux/cmd-copy-mode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-copy-mode.c,v 1.28 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-copy-mode.c,v 1.29 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -35,7 +35,7 @@ const struct cmd_entry cmd_copy_mode_entry = { .tflag = CMD_PANE, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_copy_mode_exec }; @@ -48,7 +48,7 @@ const struct cmd_entry cmd_clock_mode_entry = { .tflag = CMD_PANE, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_copy_mode_exec }; diff --git a/usr.bin/tmux/cmd-display-panes.c b/usr.bin/tmux/cmd-display-panes.c index 731540578d1..722562213d2 100644 --- a/usr.bin/tmux/cmd-display-panes.c +++ b/usr.bin/tmux/cmd-display-panes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-display-panes.c,v 1.13 2016/06/16 10:55:47 nicm Exp $ */ +/* $OpenBSD: cmd-display-panes.c,v 1.14 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -41,7 +41,7 @@ const struct cmd_entry cmd_display_panes_entry = { .tflag = CMD_CLIENT, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_display_panes_exec }; diff --git a/usr.bin/tmux/cmd-list-buffers.c b/usr.bin/tmux/cmd-list-buffers.c index 739c3446a3f..221f799a24d 100644 --- a/usr.bin/tmux/cmd-list-buffers.c +++ b/usr.bin/tmux/cmd-list-buffers.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-list-buffers.c,v 1.31 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-list-buffers.c,v 1.32 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -39,7 +39,7 @@ const struct cmd_entry cmd_list_buffers_entry = { .args = { "F:", 0, 0 }, .usage = "[-F format]", - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_list_buffers_exec }; diff --git a/usr.bin/tmux/cmd-list-clients.c b/usr.bin/tmux/cmd-list-clients.c index a74370d6d6a..4a2eac34011 100644 --- a/usr.bin/tmux/cmd-list-clients.c +++ b/usr.bin/tmux/cmd-list-clients.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-list-clients.c,v 1.28 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-list-clients.c,v 1.29 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -44,7 +44,7 @@ const struct cmd_entry cmd_list_clients_entry = { .tflag = CMD_SESSION, - .flags = CMD_READONLY, + .flags = CMD_READONLY|CMD_AFTERHOOK, .exec = cmd_list_clients_exec }; diff --git a/usr.bin/tmux/cmd-list-keys.c b/usr.bin/tmux/cmd-list-keys.c index 7c618c7c81a..d9285bc5878 100644 --- a/usr.bin/tmux/cmd-list-keys.c +++ b/usr.bin/tmux/cmd-list-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-list-keys.c,v 1.38 2016/10/12 14:50:14 nicm Exp $ */ +/* $OpenBSD: cmd-list-keys.c,v 1.39 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -39,7 +39,7 @@ const struct cmd_entry cmd_list_keys_entry = { .args = { "t:T:", 0, 0 }, .usage = "[-t mode-table] [-T key-table]", - .flags = CMD_STARTSERVER, + .flags = CMD_STARTSERVER|CMD_AFTERHOOK, .exec = cmd_list_keys_exec }; @@ -50,7 +50,7 @@ const struct cmd_entry cmd_list_commands_entry = { .args = { "F:", 0, 0 }, .usage = "[-F format]", - .flags = CMD_STARTSERVER, + .flags = CMD_STARTSERVER|CMD_AFTERHOOK, .exec = cmd_list_keys_exec }; diff --git a/usr.bin/tmux/cmd-list-panes.c b/usr.bin/tmux/cmd-list-panes.c index 409cfb38dd2..577c526c673 100644 --- a/usr.bin/tmux/cmd-list-panes.c +++ b/usr.bin/tmux/cmd-list-panes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-list-panes.c,v 1.28 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-list-panes.c,v 1.29 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -43,7 +43,7 @@ const struct cmd_entry cmd_list_panes_entry = { .tflag = CMD_WINDOW, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_list_panes_exec }; diff --git a/usr.bin/tmux/cmd-list-sessions.c b/usr.bin/tmux/cmd-list-sessions.c index fe4cd88f3b7..d87df0ed5ed 100644 --- a/usr.bin/tmux/cmd-list-sessions.c +++ b/usr.bin/tmux/cmd-list-sessions.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-list-sessions.c,v 1.25 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-list-sessions.c,v 1.26 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -45,7 +45,7 @@ const struct cmd_entry cmd_list_sessions_entry = { .args = { "F:", 0, 0 }, .usage = "[-F format]", - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_list_sessions_exec }; diff --git a/usr.bin/tmux/cmd-list-windows.c b/usr.bin/tmux/cmd-list-windows.c index 7a46ce7c1ce..adac28041ec 100644 --- a/usr.bin/tmux/cmd-list-windows.c +++ b/usr.bin/tmux/cmd-list-windows.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-list-windows.c,v 1.38 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-list-windows.c,v 1.39 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -54,7 +54,7 @@ const struct cmd_entry cmd_list_windows_entry = { .tflag = CMD_SESSION, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_list_windows_exec }; diff --git a/usr.bin/tmux/cmd-load-buffer.c b/usr.bin/tmux/cmd-load-buffer.c index 47558baaab8..fb0f8a187c6 100644 --- a/usr.bin/tmux/cmd-load-buffer.c +++ b/usr.bin/tmux/cmd-load-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-load-buffer.c,v 1.43 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-load-buffer.c,v 1.44 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -42,7 +42,7 @@ const struct cmd_entry cmd_load_buffer_entry = { .args = { "b:", 1, 1 }, .usage = CMD_BUFFER_USAGE " path", - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_load_buffer_exec }; diff --git a/usr.bin/tmux/cmd-lock-server.c b/usr.bin/tmux/cmd-lock-server.c index 43906c9d984..b4328778bab 100644 --- a/usr.bin/tmux/cmd-lock-server.c +++ b/usr.bin/tmux/cmd-lock-server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-lock-server.c,v 1.23 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-lock-server.c,v 1.24 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -33,7 +33,7 @@ const struct cmd_entry cmd_lock_server_entry = { .args = { "", 0, 0 }, .usage = "", - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_lock_server_exec }; @@ -46,7 +46,7 @@ const struct cmd_entry cmd_lock_session_entry = { .tflag = CMD_SESSION, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_lock_server_exec }; @@ -59,7 +59,7 @@ const struct cmd_entry cmd_lock_client_entry = { .tflag = CMD_CLIENT, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_lock_server_exec }; diff --git a/usr.bin/tmux/cmd-paste-buffer.c b/usr.bin/tmux/cmd-paste-buffer.c index 33553a26858..1529eea89ed 100644 --- a/usr.bin/tmux/cmd-paste-buffer.c +++ b/usr.bin/tmux/cmd-paste-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-paste-buffer.c,v 1.35 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-paste-buffer.c,v 1.36 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -40,7 +40,7 @@ const struct cmd_entry cmd_paste_buffer_entry = { .tflag = CMD_PANE, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_paste_buffer_exec }; diff --git a/usr.bin/tmux/cmd-pipe-pane.c b/usr.bin/tmux/cmd-pipe-pane.c index affd3dc4d77..505a9bec97e 100644 --- a/usr.bin/tmux/cmd-pipe-pane.c +++ b/usr.bin/tmux/cmd-pipe-pane.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-pipe-pane.c,v 1.37 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-pipe-pane.c,v 1.38 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -46,7 +46,7 @@ const struct cmd_entry cmd_pipe_pane_entry = { .tflag = CMD_PANE, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_pipe_pane_exec }; diff --git a/usr.bin/tmux/cmd-refresh-client.c b/usr.bin/tmux/cmd-refresh-client.c index 27c30abda1a..5364dedbe3a 100644 --- a/usr.bin/tmux/cmd-refresh-client.c +++ b/usr.bin/tmux/cmd-refresh-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-refresh-client.c,v 1.20 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-refresh-client.c,v 1.21 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -35,7 +35,7 @@ const struct cmd_entry cmd_refresh_client_entry = { .tflag = CMD_CLIENT, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_refresh_client_exec }; diff --git a/usr.bin/tmux/cmd-rename-session.c b/usr.bin/tmux/cmd-rename-session.c index 6c196ece745..78fe21d1b0b 100644 --- a/usr.bin/tmux/cmd-rename-session.c +++ b/usr.bin/tmux/cmd-rename-session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-rename-session.c,v 1.21 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-rename-session.c,v 1.22 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -37,7 +37,7 @@ const struct cmd_entry cmd_rename_session_entry = { .tflag = CMD_SESSION, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_rename_session_exec }; diff --git a/usr.bin/tmux/cmd-rename-window.c b/usr.bin/tmux/cmd-rename-window.c index 77ab474ddb7..fd0e56608f4 100644 --- a/usr.bin/tmux/cmd-rename-window.c +++ b/usr.bin/tmux/cmd-rename-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-rename-window.c,v 1.17 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-rename-window.c,v 1.18 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -37,7 +37,7 @@ const struct cmd_entry cmd_rename_window_entry = { .tflag = CMD_WINDOW, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_rename_window_exec }; diff --git a/usr.bin/tmux/cmd-resize-pane.c b/usr.bin/tmux/cmd-resize-pane.c index fc414fa460e..342337eef0d 100644 --- a/usr.bin/tmux/cmd-resize-pane.c +++ b/usr.bin/tmux/cmd-resize-pane.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-resize-pane.c,v 1.25 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-resize-pane.c,v 1.26 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -41,7 +41,7 @@ const struct cmd_entry cmd_resize_pane_entry = { .tflag = CMD_PANE, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_resize_pane_exec }; diff --git a/usr.bin/tmux/cmd-save-buffer.c b/usr.bin/tmux/cmd-save-buffer.c index e323914c502..9742cfc2d4c 100644 --- a/usr.bin/tmux/cmd-save-buffer.c +++ b/usr.bin/tmux/cmd-save-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-save-buffer.c,v 1.38 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-save-buffer.c,v 1.39 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -41,7 +41,7 @@ const struct cmd_entry cmd_save_buffer_entry = { .args = { "ab:", 1, 1 }, .usage = "[-a] " CMD_BUFFER_USAGE " path", - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_save_buffer_exec }; @@ -52,7 +52,7 @@ const struct cmd_entry cmd_show_buffer_entry = { .args = { "b:", 0, 0 }, .usage = CMD_BUFFER_USAGE, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_save_buffer_exec }; diff --git a/usr.bin/tmux/cmd-select-layout.c b/usr.bin/tmux/cmd-select-layout.c index 270d3222cb3..c7ee98a6a38 100644 --- a/usr.bin/tmux/cmd-select-layout.c +++ b/usr.bin/tmux/cmd-select-layout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-select-layout.c,v 1.30 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-select-layout.c,v 1.31 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -37,7 +37,7 @@ const struct cmd_entry cmd_select_layout_entry = { .tflag = CMD_WINDOW, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_select_layout_exec }; @@ -50,7 +50,7 @@ const struct cmd_entry cmd_next_layout_entry = { .tflag = CMD_WINDOW, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_select_layout_exec }; @@ -63,7 +63,7 @@ const struct cmd_entry cmd_previous_layout_entry = { .tflag = CMD_WINDOW, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_select_layout_exec }; diff --git a/usr.bin/tmux/cmd-send-keys.c b/usr.bin/tmux/cmd-send-keys.c index e6593084cb0..b8a213c4fbf 100644 --- a/usr.bin/tmux/cmd-send-keys.c +++ b/usr.bin/tmux/cmd-send-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-send-keys.c,v 1.30 2016/10/11 07:23:34 nicm Exp $ */ +/* $OpenBSD: cmd-send-keys.c,v 1.31 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -38,7 +38,7 @@ const struct cmd_entry cmd_send_keys_entry = { .tflag = CMD_PANE, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_send_keys_exec }; @@ -51,7 +51,7 @@ const struct cmd_entry cmd_send_prefix_entry = { .tflag = CMD_PANE, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_send_keys_exec }; diff --git a/usr.bin/tmux/cmd-set-buffer.c b/usr.bin/tmux/cmd-set-buffer.c index d25a02bcaa0..5c7c713606c 100644 --- a/usr.bin/tmux/cmd-set-buffer.c +++ b/usr.bin/tmux/cmd-set-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-set-buffer.c,v 1.26 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-set-buffer.c,v 1.27 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -36,7 +36,7 @@ const struct cmd_entry cmd_set_buffer_entry = { .args = { "ab:n:", 0, 1 }, .usage = "[-a] " CMD_BUFFER_USAGE " [-n new-buffer-name] data", - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_set_buffer_exec }; @@ -47,7 +47,7 @@ const struct cmd_entry cmd_delete_buffer_entry = { .args = { "b:", 0, 0 }, .usage = CMD_BUFFER_USAGE, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_set_buffer_exec }; diff --git a/usr.bin/tmux/cmd-set-environment.c b/usr.bin/tmux/cmd-set-environment.c index f934a8b3051..9d3cf2ade1c 100644 --- a/usr.bin/tmux/cmd-set-environment.c +++ b/usr.bin/tmux/cmd-set-environment.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-set-environment.c,v 1.19 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-set-environment.c,v 1.20 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -38,7 +38,7 @@ const struct cmd_entry cmd_set_environment_entry = { .tflag = CMD_SESSION_CANFAIL, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_set_environment_exec }; diff --git a/usr.bin/tmux/cmd-set-hook.c b/usr.bin/tmux/cmd-set-hook.c index a78f615306a..5cd7c004ac0 100644 --- a/usr.bin/tmux/cmd-set-hook.c +++ b/usr.bin/tmux/cmd-set-hook.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-set-hook.c,v 1.7 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-set-hook.c,v 1.8 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2012 Thomas Adam <thomas@xteddy.org> @@ -38,7 +38,7 @@ const struct cmd_entry cmd_set_hook_entry = { .tflag = CMD_SESSION_CANFAIL, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_set_hook_exec }; @@ -51,7 +51,7 @@ const struct cmd_entry cmd_show_hooks_entry = { .tflag = CMD_SESSION, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_set_hook_exec }; diff --git a/usr.bin/tmux/cmd-set-option.c b/usr.bin/tmux/cmd-set-option.c index 6cafd730267..8ff43ce5f39 100644 --- a/usr.bin/tmux/cmd-set-option.c +++ b/usr.bin/tmux/cmd-set-option.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-set-option.c,v 1.99 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-set-option.c,v 1.100 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -73,7 +73,7 @@ const struct cmd_entry cmd_set_option_entry = { .tflag = CMD_WINDOW_CANFAIL, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_set_option_exec }; @@ -86,7 +86,7 @@ const struct cmd_entry cmd_set_window_option_entry = { .tflag = CMD_WINDOW_CANFAIL, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_set_option_exec }; diff --git a/usr.bin/tmux/cmd-show-environment.c b/usr.bin/tmux/cmd-show-environment.c index ad0ea975ae4..8df9aec62b6 100644 --- a/usr.bin/tmux/cmd-show-environment.c +++ b/usr.bin/tmux/cmd-show-environment.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-show-environment.c,v 1.20 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-show-environment.c,v 1.21 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -42,7 +42,7 @@ const struct cmd_entry cmd_show_environment_entry = { .tflag = CMD_SESSION_CANFAIL, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_show_environment_exec }; diff --git a/usr.bin/tmux/cmd-show-messages.c b/usr.bin/tmux/cmd-show-messages.c index 47d35ff23b6..586ca265a84 100644 --- a/usr.bin/tmux/cmd-show-messages.c +++ b/usr.bin/tmux/cmd-show-messages.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-show-messages.c,v 1.21 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-show-messages.c,v 1.22 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -40,7 +40,7 @@ const struct cmd_entry cmd_show_messages_entry = { .tflag = CMD_CLIENT, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_show_messages_exec }; @@ -51,7 +51,7 @@ const struct cmd_entry cmd_server_info_entry = { .args = { "", 0, 0 }, .usage = "", - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_show_messages_exec }; diff --git a/usr.bin/tmux/cmd-show-options.c b/usr.bin/tmux/cmd-show-options.c index 1d953e3155b..cfb33c70dc7 100644 --- a/usr.bin/tmux/cmd-show-options.c +++ b/usr.bin/tmux/cmd-show-options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-show-options.c,v 1.32 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-show-options.c,v 1.33 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -43,7 +43,7 @@ const struct cmd_entry cmd_show_options_entry = { .tflag = CMD_WINDOW_CANFAIL, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_show_options_exec }; @@ -56,7 +56,7 @@ const struct cmd_entry cmd_show_window_options_entry = { .tflag = CMD_WINDOW_CANFAIL, - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_show_options_exec }; diff --git a/usr.bin/tmux/cmd-string.c b/usr.bin/tmux/cmd-string.c index 7876d5d740b..bfed0d44ed1 100644 --- a/usr.bin/tmux/cmd-string.c +++ b/usr.bin/tmux/cmd-string.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-string.c,v 1.23 2016/10/10 21:51:39 nicm Exp $ */ +/* $OpenBSD: cmd-string.c,v 1.24 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -133,7 +133,8 @@ cmd_string_parse(const char *s, struct cmd_list **cmdlist, const char *file, if (argc == 0) goto out; - *cmdlist = cmd_list_parse(argc, argv, file, line, cause); + *cmdlist = cmd_list_parse(argc, argv, file, line, + cause); if (*cmdlist == NULL) goto out; diff --git a/usr.bin/tmux/cmd-unbind-key.c b/usr.bin/tmux/cmd-unbind-key.c index 402e57612a2..f7f35dfc67b 100644 --- a/usr.bin/tmux/cmd-unbind-key.c +++ b/usr.bin/tmux/cmd-unbind-key.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-unbind-key.c,v 1.27 2016/10/12 14:50:14 nicm Exp $ */ +/* $OpenBSD: cmd-unbind-key.c,v 1.28 2016/10/14 22:14:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -37,7 +37,7 @@ const struct cmd_entry cmd_unbind_key_entry = { .args = { "ant:T:", 0, 1 }, .usage = "[-an] [-t mode-table] [-T key-table] key", - .flags = 0, + .flags = CMD_AFTERHOOK, .exec = cmd_unbind_key_exec }; |