Update of /cvsroot/tmux/tmux
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv5640
Modified Files:
cmd-unbind-key.c
Log Message:
Sync OpenBSD patchset 837:
unbind-key -a is allowed no arguments.
Index: cmd-unbind-key.c
===================================================================
RCS file: /cvsroot/tmux/tmux/cmd-unbind-key.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- cmd-unbind-key.c 7 Jan 2011 14:45:34 -0000 1.24
+++ cmd-unbind-key.c 21 Jan 2011 23:46:09 -0000 1.25
@@ -31,7 +31,7 @@
const struct cmd_entry cmd_unbind_key_entry = {
"unbind-key", "unbind",
- "acnt:", 1, 1,
+ "acnt:", 0, 1,
"[-acn] [-t key-table] key",
0,
NULL,
@@ -43,6 +43,8 @@
cmd_unbind_key_check(struct args *args)
{
if (args_has(args, 'a') && (args->argc != 0 || args_has(args, 't')))
+ return (-1);
+ if (!args_has(args, 'a') && args->argc != 1)
return (-1);
return (0);
}
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs