mirror of
https://github.com/tmux/tmux.git
synced 2025-12-20 06:06:05 +00:00
Fix key code for M-BSpace, GitHub issue 4717.
This commit is contained in:
14
tty-keys.c
14
tty-keys.c
@@ -909,9 +909,15 @@ first_key:
|
|||||||
* used. termios should have a better idea.
|
* used. termios should have a better idea.
|
||||||
*/
|
*/
|
||||||
bspace = tty->tio.c_cc[VERASE];
|
bspace = tty->tio.c_cc[VERASE];
|
||||||
if (bspace != _POSIX_VDISABLE && key == bspace) {
|
if (bspace != _POSIX_VDISABLE) {
|
||||||
log_debug("%s: key %#llx is backspace", c->name, key);
|
if (key == bspace) {
|
||||||
key = KEYC_BSPACE;
|
log_debug("%s: key %#llx is BSpace", c->name, key);
|
||||||
|
key = KEYC_BSPACE;
|
||||||
|
}
|
||||||
|
if (key == (bspace|KEYC_META)) {
|
||||||
|
log_debug("%s: key %#llx is M-BSpace", c->name, key);
|
||||||
|
key = KEYC_BSPACE|KEYC_META;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1304,7 +1310,7 @@ tty_keys_clipboard(struct tty *tty, const char *buf, size_t len, size_t *size)
|
|||||||
struct client *c = tty->client;
|
struct client *c = tty->client;
|
||||||
size_t end, terminator = 0, needed;
|
size_t end, terminator = 0, needed;
|
||||||
char *copy, *out;
|
char *copy, *out;
|
||||||
int outlen;
|
int outlen;
|
||||||
struct input_request_clipboard_data cd;
|
struct input_request_clipboard_data cd;
|
||||||
|
|
||||||
*size = 0;
|
*size = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user