diff options
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/actions.c b/src/actions.c index e3101a6..a38c9e7 100644 --- a/src/actions.c +++ b/src/actions.c @@ -367,7 +367,7 @@ cmd_bind (int interactive, void *data) if (!data) { - message (" bind: two arguments required "); + message (" bind: at least one argument required "); return NULL; } @@ -382,11 +382,14 @@ cmd_bind (int interactive, void *data) } 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 "); + { + /* If no comand is specified, then unbind the key. */ + cmd_unbind (interactive, keydesc); + } else { struct rp_key *key = parse_keydesc (keydesc); |