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

3
tmux.h
View File

@ -167,7 +167,8 @@ struct winlink;
/* Is this a paste key? */
#define KEYC_IS_PASTE(key) \
((key) == KEYC_PASTE_START || (key) == KEYC_PASTE_END)
(((key) & KEYC_MASK_KEY) == KEYC_PASTE_START || \
((key) & KEYC_MASK_KEY) == KEYC_PASTE_END)
/* Multiple click timeout. */
#define KEYC_CLICK_TIMEOUT 300