CVSROOT:        /cvs
Module name:    src
Changes by:     n...@cvs.openbsd.org    2017/04/22 04:22:39

Modified files:
        usr.bin/tmux   : cmd-attach-session.c cmd-break-pane.c 
                         cmd-capture-pane.c cmd-choose-buffer.c 
                         cmd-choose-client.c cmd-choose-tree.c 
                         cmd-command-prompt.c cmd-confirm-before.c 
                         cmd-copy-mode.c cmd-detach-client.c 
                         cmd-display-message.c cmd-display-panes.c 
                         cmd-find-window.c cmd-find.c cmd-if-shell.c 
                         cmd-join-pane.c cmd-kill-pane.c 
                         cmd-kill-session.c cmd-kill-window.c 
                         cmd-list-clients.c cmd-list-panes.c 
                         cmd-list-windows.c cmd-lock-server.c 
                         cmd-move-window.c cmd-new-session.c 
                         cmd-new-window.c cmd-paste-buffer.c 
                         cmd-pipe-pane.c cmd-queue.c 
                         cmd-refresh-client.c cmd-rename-session.c 
                         cmd-rename-window.c cmd-resize-pane.c 
                         cmd-respawn-pane.c cmd-respawn-window.c 
                         cmd-rotate-window.c cmd-run-shell.c 
                         cmd-select-layout.c cmd-select-pane.c 
                         cmd-select-window.c cmd-send-keys.c 
                         cmd-set-environment.c cmd-set-hook.c 
                         cmd-set-option.c cmd-show-environment.c 
                         cmd-show-messages.c cmd-show-options.c 
                         cmd-split-window.c cmd-swap-pane.c 
                         cmd-swap-window.c cmd-switch-client.c cmd.c 
                         tmux.h 

Log message:
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.

Reply via email to