Get rid of the extra layer of flags and cmd_prepare() and just store the
authornicm <nicm@openbsd.org>
Sat, 22 Apr 2017 10:22:39 +0000 (10:22 +0000)
committernicm <nicm@openbsd.org>
Sat, 22 Apr 2017 10:22:39 +0000 (10:22 +0000)
commitbf0d297eb5fd1d4558a97868432053598642156e
tree78d4342b9a8453beaed8105e1356f8593332810b
parente825de79df20ff7ad493d85dd9adfbfac4020cd0
Get rid of the extra layer of flags and cmd_prepare() and just store the
CMD_FIND_* flags in the cmd_entry and call it for the command. Commands
with special requirements call it themselves and update the target for
hooks to use.
53 files changed:
usr.bin/tmux/cmd-attach-session.c
usr.bin/tmux/cmd-break-pane.c
usr.bin/tmux/cmd-capture-pane.c
usr.bin/tmux/cmd-choose-buffer.c
usr.bin/tmux/cmd-choose-client.c
usr.bin/tmux/cmd-choose-tree.c
usr.bin/tmux/cmd-command-prompt.c
usr.bin/tmux/cmd-confirm-before.c
usr.bin/tmux/cmd-copy-mode.c
usr.bin/tmux/cmd-detach-client.c
usr.bin/tmux/cmd-display-message.c
usr.bin/tmux/cmd-display-panes.c
usr.bin/tmux/cmd-find-window.c
usr.bin/tmux/cmd-find.c
usr.bin/tmux/cmd-if-shell.c
usr.bin/tmux/cmd-join-pane.c
usr.bin/tmux/cmd-kill-pane.c
usr.bin/tmux/cmd-kill-session.c
usr.bin/tmux/cmd-kill-window.c
usr.bin/tmux/cmd-list-clients.c
usr.bin/tmux/cmd-list-panes.c
usr.bin/tmux/cmd-list-windows.c
usr.bin/tmux/cmd-lock-server.c
usr.bin/tmux/cmd-move-window.c
usr.bin/tmux/cmd-new-session.c
usr.bin/tmux/cmd-new-window.c
usr.bin/tmux/cmd-paste-buffer.c
usr.bin/tmux/cmd-pipe-pane.c
usr.bin/tmux/cmd-queue.c
usr.bin/tmux/cmd-refresh-client.c
usr.bin/tmux/cmd-rename-session.c
usr.bin/tmux/cmd-rename-window.c
usr.bin/tmux/cmd-resize-pane.c
usr.bin/tmux/cmd-respawn-pane.c
usr.bin/tmux/cmd-respawn-window.c
usr.bin/tmux/cmd-rotate-window.c
usr.bin/tmux/cmd-run-shell.c
usr.bin/tmux/cmd-select-layout.c
usr.bin/tmux/cmd-select-pane.c
usr.bin/tmux/cmd-select-window.c
usr.bin/tmux/cmd-send-keys.c
usr.bin/tmux/cmd-set-environment.c
usr.bin/tmux/cmd-set-hook.c
usr.bin/tmux/cmd-set-option.c
usr.bin/tmux/cmd-show-environment.c
usr.bin/tmux/cmd-show-messages.c
usr.bin/tmux/cmd-show-options.c
usr.bin/tmux/cmd-split-window.c
usr.bin/tmux/cmd-swap-pane.c
usr.bin/tmux/cmd-swap-window.c
usr.bin/tmux/cmd-switch-client.c
usr.bin/tmux/cmd.c
usr.bin/tmux/tmux.h