summaryrefslogtreecommitdiffstats
path: root/key-string.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-01-21 08:40:09 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-01-21 08:40:09 +0000
commit535286c05aee55c0127cdabada8e54582905ef8e (patch)
tree425407a0ae29629bd1f5ffacd18b5034be43602f /key-string.c
parent7f24020cbe477548795754f2f7f01aafc2cd3cb8 (diff)
Drop the ability to have a list of keys in the prefix in favour of two
separate options, prefix and prefix2. This simplifies the code and gets rid the data options type which was only used for this one option. Also add a -2 flag to send-prefix to send the secondary prefix key, fixing a cause of minor irritation. People who want three prefix keys are out of luck :-).
Diffstat (limited to 'key-string.c')
-rw-r--r--key-string.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/key-string.c b/key-string.c
index 29b6a844..08cf0b9c 100644
--- a/key-string.c
+++ b/key-string.c
@@ -188,6 +188,10 @@ key_string_lookup_key(int key)
*out = '\0';
+ /* Handle no key. */
+ if (key == KEYC_NONE)
+ return ("none");
+
/*
* Special case: display C-@ as C-Space. Could do this below in
* the (key >= 0 && key <= 32), but this way we let it be found