mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
Pass Ctrl keys through as is when given as hex, GitHub issue 2724.
This commit is contained in:
parent
0d0683c28a
commit
9f3874e5c7
@ -183,6 +183,8 @@ key_string_lookup_string(const char *string)
|
||||
if (string[0] == '0' && string[1] == 'x') {
|
||||
if (sscanf(string + 2, "%x", &u) != 1)
|
||||
return (KEYC_UNKNOWN);
|
||||
if (u < 32)
|
||||
return (u);
|
||||
mlen = wctomb(m, u);
|
||||
if (mlen <= 0 || mlen > MB_LEN_MAX)
|
||||
return (KEYC_UNKNOWN);
|
||||
|
Loading…
Reference in New Issue
Block a user