2001-09-12 Gergely Nagy
* src/actions.c (cmd_bind): binding an empty string to a key will wipe out the old binding (ie, unbind the key) diff -urad ratpoison.orig/src/actions.c ratpoison.emptybind/src/actions.c --- ratpoison.orig/src/actions.c Sun Sep 9 22:32:17 2001 +++ ratpoison.emptybind/src/actions.c Wed Sep 12 17:57:38 2001 @@ -367,7 +367,7 @@ if (!data) { - message (" bind: two arguments required "); + message (" bind: at least one argument required "); return NULL; } @@ -382,11 +382,13 @@ } if (!keydesc) - message (" bind: two arguments required "); + message (" bind: at least one argument required "); else { if (!cmd || !*cmd) - message (" bind: need a command to bind to key "); + { + cmd_unbind (interactive, keydesc); + } else { struct rp_key *key = parse_keydesc (keydesc);