The branch, hooks has been updated
via e86b8a5633eb459240f9705223a8be65989e27fc (commit)
from c47536f910e5d67b38279eb6532a9a6c5ebda591 (commit)
- Log -----------------------------------------------------------------
commit e86b8a5633eb459240f9705223a8be65989e27fc
Author: Thomas Adam <[email protected]>
Commit: Thomas Adam <[email protected]>
set/setw needs CMD_PREP_CANFAIL
In the case of using 'set' from .tmux.conf, there will be no current session
when the command is prepared. As such, allow this command to fall-through
to filling out the defaults, rather than producing a tonne of errors.
---
cmd-set-option.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmd-set-option.c b/cmd-set-option.c
index eb80911..5d03ae6 100644
--- a/cmd-set-option.c
+++ b/cmd-set-option.c
@@ -68,7 +68,7 @@ const struct cmd_entry cmd_set_option_entry = {
"set-option", "set",
"agoqst:uw", 1, 2,
"[-agosquw] [-t target-window] option [value]",
- CMD_PREP_WINDOW_T,
+ CMD_PREP_WINDOW_T|CMD_PREP_CANFAIL,
cmd_set_option_exec
};
@@ -76,7 +76,7 @@ const struct cmd_entry cmd_set_window_option_entry = {
"set-window-option", "setw",
"agoqt:u", 1, 2,
"[-agoqu] " CMD_TARGET_WINDOW_USAGE " option [value]",
- CMD_PREP_WINDOW_T,
+ CMD_PREP_WINDOW_T|CMD_PREP_CANFAIL,
cmd_set_option_exec
};
-----------------------------------------------------------------------
Summary of changes:
cmd-set-option.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
tmux
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs