aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2016-10-13 10:01:49 +0000
committernicm <nicm>2016-10-13 10:01:49 +0000
commit4d9e6ea3106ea06afa4583254549d525b31ed277 (patch)
tree8532ce29088d6b65b9615271dd6b5fdaa9984ca2 /tmux.h
parent05dac2e42c257c87d1fdbc70d0d976f918d77cfd (diff)
downloadrtmux-4d9e6ea3106ea06afa4583254549d525b31ed277.tar.gz
rtmux-4d9e6ea3106ea06afa4583254549d525b31ed277.tar.bz2
rtmux-4d9e6ea3106ea06afa4583254549d525b31ed277.zip
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 'tmux.h')
-rw-r--r--tmux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index 4097052e..a33eec29 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1730,6 +1730,7 @@ int cmd_find_target(struct cmd_find_state *,
struct client *cmd_find_client(struct cmd_q *, const char *, int);
void cmd_find_clear_state(struct cmd_find_state *, struct cmd_q *,
int);
+int cmd_find_empty_state(struct cmd_find_state *);
int cmd_find_valid_state(struct cmd_find_state *);
void cmd_find_copy_state(struct cmd_find_state *,
struct cmd_find_state *);