CVSROOT: /cvs Module name: src Changes by: n...@cvs.openbsd.org 2016/10/16 11:55:14
Modified files: usr.bin/tmux : cfg.c cmd-attach-session.c cmd-command-prompt.c cmd-confirm-before.c cmd-copy-mode.c cmd-display-panes.c cmd-find.c cmd-if-shell.c cmd-load-buffer.c cmd-new-session.c cmd-new-window.c cmd-queue.c cmd-resize-pane.c cmd-run-shell.c cmd-send-keys.c cmd-source-file.c cmd-split-window.c cmd-wait-for.c cmd.c control.c format.c hooks.c key-bindings.c notify.c server-client.c server.c tmux.1 tmux.h window-choose.c Log message: Rewrite command queue handling. Each client still has a command queue, but there is also now a global command queue. Instead of command queues being dispatched on demand from wherever the command happens to be added, they are now all dispatched from the top level server loop. Command queues may now also include callbacks as well as commands, and items may be inserted after the current command as well as at the end. This all makes command queues significantly more predictable and easier to use, and avoids the complex multiple nested command queues used by source-file, if-shell and friends. A mass rename of struct cmdq to a better name (cmdq_item probably) is coming.