Do not allow meta prefix on paste start and end sequences, GitHub issue 4387.

This commit is contained in:
nicm
2025-02-26 08:55:27 +00:00
parent f224d61f37
commit 21f7db4c4d
3 changed files with 6 additions and 5 deletions

View File

@@ -2247,13 +2247,13 @@ out:
static int
server_client_is_bracket_paste(struct client *c, key_code key)
{
if (key == KEYC_PASTE_START) {
if ((key & KEYC_MASK_KEY) == KEYC_PASTE_START) {
c->flags |= CLIENT_BRACKETPASTING;
log_debug("%s: bracket paste on", c->name);
return (0);
}
if (key == KEYC_PASTE_END) {
if ((key & KEYC_MASK_KEY) == KEYC_PASTE_END) {
c->flags &= ~CLIENT_BRACKETPASTING;
log_debug("%s: bracket paste off", c->name);
return (0);