commit:     bf51acfab67751f7d5c9e3963f494bd040bf5760
Author:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Fri May  7 11:08:34 2021 +0000
Commit:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Fri May  7 11:09:58 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf51acfa

app-misc/tmux: fix shift-f5 keybinding

Closes: https://bugs.gentoo.org/788307
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>

 app-misc/tmux/files/tmux-fix-bindings.patch        | 45 ++++++++++++++++++++++
 .../tmux/{tmux-3.2.ebuild => tmux-3.2-r1.ebuild}   |  1 +
 2 files changed, 46 insertions(+)

diff --git a/app-misc/tmux/files/tmux-fix-bindings.patch 
b/app-misc/tmux/files/tmux-fix-bindings.patch
new file mode 100644
index 00000000000..6436302f055
--- /dev/null
+++ b/app-misc/tmux/files/tmux-fix-bindings.patch
@@ -0,0 +1,45 @@
+From f2951bd4a560692048e68bf29a5b0a288346a7d4 Mon Sep 17 00:00:00 2001
+From: Nicholas Marriott <nicholas.marri...@gmail.com>
+Date: Wed, 5 May 2021 07:23:23 +0100
+Subject: [PATCH] Remove old shift function keys which interfere with xterm
+ keys now. GitHub issue 2696.
+
+---
+ input-keys.c | 24 ------------------------
+ 1 file changed, 24 deletions(-)
+
+diff --git a/input-keys.c b/input-keys.c
+index ffd2201c0..be83600e5 100644
+--- a/input-keys.c
++++ b/input-keys.c
+@@ -94,30 +94,6 @@ static struct input_key_entry input_key_defaults[] = {
+       { .key = KEYC_F12,
+         .data = "\033[24~"
+       },
+-      { .key = KEYC_F1|KEYC_SHIFT,
+-        .data = "\033[25~"
+-      },
+-      { .key = KEYC_F2|KEYC_SHIFT,
+-        .data = "\033[26~"
+-      },
+-      { .key = KEYC_F3|KEYC_SHIFT,
+-        .data = "\033[28~"
+-      },
+-      { .key = KEYC_F4|KEYC_SHIFT,
+-        .data = "\033[29~"
+-      },
+-      { .key = KEYC_F5|KEYC_SHIFT,
+-        .data = "\033[31~"
+-      },
+-      { .key = KEYC_F6|KEYC_SHIFT,
+-        .data = "\033[32~"
+-      },
+-      { .key = KEYC_F7|KEYC_SHIFT,
+-        .data = "\033[33~"
+-      },
+-      { .key = KEYC_F8|KEYC_SHIFT,
+-        .data = "\033[34~"
+-      },
+       { .key = KEYC_IC,
+         .data = "\033[2~"
+       },

diff --git a/app-misc/tmux/tmux-3.2.ebuild b/app-misc/tmux/tmux-3.2-r1.ebuild
similarity index 97%
rename from app-misc/tmux/tmux-3.2.ebuild
rename to app-misc/tmux/tmux-3.2-r1.ebuild
index bbd5c65d455..11298a03e48 100644
--- a/app-misc/tmux/tmux-3.2.ebuild
+++ b/app-misc/tmux/tmux-3.2-r1.ebuild
@@ -42,6 +42,7 @@ DOCS=( CHANGES README )
 
 PATCHES=(
        "${FILESDIR}/${PN}-2.4-flags.patch"
+       "${FILESDIR}/${PN}-fix-bindings.patch"
 
        # upstream fixes (can be removed with next version bump)
 )

Reply via email to