mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Check for complete keys before escape prefix, allows keys to be defined
with a leading escape. GitHub issue 1048.
This commit is contained in:
@ -164,7 +164,7 @@ server_lock_client(struct client *c)
|
||||
return;
|
||||
|
||||
cmd = options_get_string(c->session->options, "lock-command");
|
||||
if (strlen(cmd) + 1 > MAX_IMSGSIZE - IMSG_HEADER_SIZE)
|
||||
if (*cmd == '\0' || strlen(cmd) + 1 > MAX_IMSGSIZE - IMSG_HEADER_SIZE)
|
||||
return;
|
||||
|
||||
tty_stop_tty(&c->tty);
|
||||
|
Reference in New Issue
Block a user