summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/key-string.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-06-12 07:04:25 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-06-12 07:04:25 +0000
commit3ad65e527496306a15f06fcd311f5e1e9bc100c7 (patch)
tree032a8b6fec5fb73dea69977296d093fa1313e244 /usr.bin/tmux/key-string.c
parent594d6829d9a88eebba97c7ee977404c3497a10b2 (diff)
Add explicit keys for the bracketed paste sequences, both to avoid mix
ups with other keys and to make logs clearer.
Diffstat (limited to 'usr.bin/tmux/key-string.c')
-rw-r--r--usr.bin/tmux/key-string.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/key-string.c b/usr.bin/tmux/key-string.c
index cbeb81c59e4..6f961a03d86 100644
--- a/usr.bin/tmux/key-string.c
+++ b/usr.bin/tmux/key-string.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key-string.c,v 1.45 2017/02/22 09:01:32 nicm Exp $ */
+/* $OpenBSD: key-string.c,v 1.46 2017/06/12 07:04:24 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -251,6 +251,10 @@ key_string_lookup_key(key_code key)
return ("FocusIn");
if (key == KEYC_FOCUS_OUT)
return ("FocusOut");
+ if (key == KEYC_PASTE_START)
+ return ("PasteStart");
+ if (key == KEYC_PASTE_END)
+ return ("PasteEnd");
if (key == KEYC_MOUSE)
return ("Mouse");
if (key == KEYC_DRAGGING)