aboutsummaryrefslogtreecommitdiff
path: root/sysutils/tmux/files/extra-patch-tty-keys.c
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-09-30 14:44:51 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-09-30 14:44:51 +0000
commitdfe57b1a1eb7acef77c0a9e9b5766781d2235b9e (patch)
tree614dc8769060ed04e21b085932424b738d92453f /sysutils/tmux/files/extra-patch-tty-keys.c
parent2bc04b30bd6544cd80e08063004b2882539eb266 (diff)
downloadports-dfe57b1a1eb7acef77c0a9e9b5766781d2235b9e.tar.gz
ports-dfe57b1a1eb7acef77c0a9e9b5766781d2235b9e.zip
Update to 2.3.
While there, update the completion. PR: 213119 Reported by: Piotr Kubaj Changes: https://github.com/tmux/tmux/blob/52869ed182482c26163799a7215139f4d81b6fca/CHANGES Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=422991
Diffstat (limited to 'sysutils/tmux/files/extra-patch-tty-keys.c')
-rw-r--r--sysutils/tmux/files/extra-patch-tty-keys.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sysutils/tmux/files/extra-patch-tty-keys.c b/sysutils/tmux/files/extra-patch-tty-keys.c
index ba869f1f16df..663d128b1a66 100644
--- a/sysutils/tmux/files/extra-patch-tty-keys.c
+++ b/sysutils/tmux/files/extra-patch-tty-keys.c
@@ -1,11 +1,11 @@
---- tty-keys.c.orig 2016-03-02 18:08:46 UTC
+--- tty-keys.c.orig 2016-04-30 12:46:35 UTC
+++ tty-keys.c
-@@ -572,8 +572,6 @@ first_key:
+@@ -628,8 +628,6 @@ complete_key:
* used. termios should have a better idea.
*/
bspace = tty->tio.c_cc[VERASE];
-- if (bspace != _POSIX_VDISABLE && key == bspace)
-- key = KEYC_BSPACE;
-
- goto complete_key;
+- if (bspace != _POSIX_VDISABLE && (key & KEYC_MASK_KEY) == bspace)
+- key = (key & KEYC_MASK_MOD) | KEYC_BSPACE;
+ /* Remove data from buffer. */
+ evbuffer_drain(tty->event->input, size);