CVSROOT: /cvs Module name: src Changes by: n...@cvs.openbsd.org 2017/04/22 02:56:24
Modified files: usr.bin/tmux : cmd-attach-session.c cmd-break-pane.c cmd-find-window.c cmd-join-pane.c cmd-new-session.c cmd-new-window.c cmd-select-pane.c cmd-select-window.c cmd-split-window.c cmd-switch-client.c server-client.c Log message: Mouse bindings and hooks set up an initial current state when running a command. This is used for the session, window and pane for all commands in the command sequence if there is no -t or -s. However, using it for all commands in the command sequence means that if the active pane or current session is changed, subsequent commands still use the previous state. So make commands which explicitly change the current state (such as neww and selectp) update it themselves for later commands. Commands which may invalidate the state (like killp) are already OK because an invalid state will be ignored. Also fill in the current state for all key bindings rather than just the mouse, so that any omissions are easier to spot.