summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authornicm <nicm>2019-04-26 11:38:51 +0000
committernicm <nicm>2019-04-26 11:38:51 +0000
commitdfb7bb683057d08303955c49073f4b475bd0e2d6 (patch)
tree3adae7924f831bce4f28ec5aef5528793319ada4 /tmux.c
parentf1e14f86c4d2467571e20a3dca4a96a3cc357897 (diff)
Merge hooks into options and make each one an array option. This allows
multiple commands to be easily bound to one hook. set-hook and show-hooks remain but they are now variants of set-option and show-options. show-options now has a -H flag to show hooks (by default they are not shown).
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tmux.c b/tmux.c
index d7f8ab53..ac8a131a 100644
--- a/tmux.c
+++ b/tmux.c
@@ -39,7 +39,6 @@ struct options *global_options; /* server options */
struct options *global_s_options; /* session options */
struct options *global_w_options; /* window options */
struct environ *global_environ;
-struct hooks *global_hooks;
struct timeval start_time;
const char *socket_path;
@@ -312,8 +311,6 @@ main(int argc, char **argv)
flags |= CLIENT_UTF8;
}
- global_hooks = hooks_create(NULL);
-
global_environ = environ_create();
for (var = environ; *var != NULL; var++)
environ_put(global_environ, *var);