CVSROOT:        /cvs
Module name:    src
Changes by:    2016/10/13 04:01:49

Modified files:
        usr.bin/tmux   : cmd-find.c cmd-join-pane.c cmd-new-session.c 
                         cmd-new-window.c cmd-queue.c cmd-split-window.c 
                         cmd-swap-pane.c cmd-swap-window.c cmd.c tmux.h 

Log message:
Some improvements and bug fixes for hooks:

- Prepare the state again before the "after" hooks are run, because the
command may have killed or moved windows.

- Use the hooks list from the newly prepared target, not the old hooks
list (only matters for new-session really).

- Correctly detect an invalid current state and ignore it in
cmd_find_target ("killw; swapw").

- Change neww, new, killp, killw, splitw, swapp, swapw to update the
current state (used if no explicit target is given) to something more
useful after they have finished. For example, neww changes it to the
newly created window.

Hooks are still relatively new and primitive so there are likely to be
more changes to come.

Parts based on bug reports from Uwe Werler and Iblis Lin.

Reply via email to