diff options
author | Tiago Cunha <tcunha@gmx.com> | 2012-01-21 19:36:40 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2012-01-21 19:36:40 +0000 |
commit | a7b0b30bdd73f3a8d513fc69daf593174ee03145 (patch) | |
tree | dc44cb8d870c4786d9349be8ce123098d022d9f2 /key-string.c | |
parent | d4c2a935f2039e00a7a7384fa0427a6126111611 (diff) | |
download | rtmux-a7b0b30bdd73f3a8d513fc69daf593174ee03145.tar.gz rtmux-a7b0b30bdd73f3a8d513fc69daf593174ee03145.tar.bz2 rtmux-a7b0b30bdd73f3a8d513fc69daf593174ee03145.zip |
Sync OpenBSD patchset 1007:
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/key-string.c b/key-string.c index ea51ab26..e2224d18 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 |