mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
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).
This commit is contained in:
@ -129,7 +129,6 @@ session_create(const char *prefix, const char *name, const char *cwd,
|
||||
|
||||
s->environ = env;
|
||||
s->options = oo;
|
||||
s->hooks = hooks_create(global_hooks);
|
||||
|
||||
status_update_cache(s);
|
||||
|
||||
@ -193,9 +192,7 @@ session_free(__unused int fd, __unused short events, void *arg)
|
||||
|
||||
if (s->references == 0) {
|
||||
environ_free(s->environ);
|
||||
|
||||
options_free(s->options);
|
||||
hooks_free(s->hooks);
|
||||
|
||||
free(s->name);
|
||||
free(s);
|
||||
|
Reference in New Issue
Block a user