diff options
author | sabetts <sabetts> | 2001-09-13 10:41:06 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-09-13 10:41:06 +0000 |
commit | d5b04e0048b0f1bd5a3d5a8f6c5f49aecab5ed64 (patch) | |
tree | c090d65a07500f30c39851c64bee097339e1cafa /src | |
parent | 20b25a51550f3361e3cdd0608b1801cb56f09bf2 (diff) | |
download | ratpoison-d5b04e0048b0f1bd5a3d5a8f6c5f49aecab5ed64.zip |
unbind the key if no command is passed to the 'bind' command.
Diffstat (limited to 'src')
-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); |