diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-10-13 10:01:50 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-10-13 10:01:50 +0000 |
commit | 1ce190788f8a9771c0fdc87a578f903f52cb59d6 (patch) | |
tree | 8a3fe1b6a6f5829aa57bb7dfd8ed27631b9ec05b /usr.bin/systat | |
parent | 2fdfe62035bfc1a16795dd53042323ff8bee7e82 (diff) |
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.
Diffstat (limited to 'usr.bin/systat')
0 files changed, 0 insertions, 0 deletions