diff options
author | Marek Szuba <marecki@gentoo.org> | 2021-07-13 12:46:02 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2021-07-13 12:57:41 +0100 |
commit | 25aac466357a303896fa961e759488e9d4ea6eee (patch) | |
tree | 5acb46dba8d41284c986da0685a76d7abe9b55c9 /app-misc/mc/files | |
parent | virtual/szip: keyword 2.1 for ~riscv, bump to EAPI 8 (diff) | |
download | gentoo-25aac466357a303896fa961e759488e9d4ea6eee.tar.gz gentoo-25aac466357a303896fa961e759488e9d4ea6eee.tar.bz2 gentoo-25aac466357a303896fa961e759488e9d4ea6eee.zip |
app-misc/mc: fix mouse-key garbage output on ncurses and modern terminals
While at it, bump to EAPI 8 and fix some DEPEND/BDEPEND confusion.
Closes: https://bugs.gentoo.org/753578
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-misc/mc/files')
-rw-r--r-- | app-misc/mc/files/mc-4.8.26-ncurses-mouse.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app-misc/mc/files/mc-4.8.26-ncurses-mouse.patch b/app-misc/mc/files/mc-4.8.26-ncurses-mouse.patch new file mode 100644 index 000000000000..bde04c99b86e --- /dev/null +++ b/app-misc/mc/files/mc-4.8.26-ncurses-mouse.patch @@ -0,0 +1,16 @@ +Fix mouse-key input with ncurses6 in terminals without basic X10 mouse +support, at the cost of breaking it with ncurses5. See discussion in +https://midnight-commander.org/ticket/4144 . + +--- a/lib/tty/key.c ++++ b/lib/tty/key.c +@@ -2124,8 +2124,7 @@ + gboolean extended = c == MCKEY_EXTENDED_MOUSE; + + #ifdef KEY_MOUSE +- extended = extended || (c == KEY_MOUSE && xmouse_seq == NULL +- && xmouse_extended_seq != NULL); ++ extended = extended || (c == KEY_MOUSE && xmouse_extended_seq != NULL); + #endif /* KEY_MOUSE */ + + xmouse_get_event (event, extended); |