aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface-curses
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-09-14 15:26:20 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-09-14 15:26:20 +0300
commit1c29dd413e83737b91045a71c5fa500695bf1626 (patch)
treed52c30780e577518d786c0df6c2bd489839f1b83 /src/interface-curses
parenta673fe139a7cc44a7f2b4839aaa78124c49c4b75 (diff)
downloadsciteco-1c29dd413e83737b91045a71c5fa500695bf1626.tar.gz
ncurses: avoid the middle mouse button workaround in newer ncurses versions
My patch has been merged, so there is no need to keep the workaround in newer versions. See https://lists.gnu.org/archive/html/bug-ncurses/2025-09/msg00027.html
Diffstat (limited to 'src/interface-curses')
-rw-r--r--src/interface-curses/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interface-curses/interface.c b/src/interface-curses/interface.c
index 5641c5d..6c8c812 100644
--- a/src/interface-curses/interface.c
+++ b/src/interface-curses/interface.c
@@ -2021,7 +2021,7 @@ teco_interface_process_mevent(MEVENT *event, GError **error)
if (event->bstate & BUTTON_ALT)
teco_mouse.mods |= TECO_MOUSE_ALT;
-#ifdef NCURSES_UNIX
+#if defined(NCURSES_UNIX) && NCURSES_VERSION_PATCH < 20250913
/*
* FIXME: Some terminal emulators do not send separate
* middle click PRESSED and RELEASED buttons
@@ -2042,7 +2042,7 @@ teco_interface_process_mevent(MEVENT *event, GError **error)
teco_mouse.type = TECO_MOUSE_RELEASED;
}
}
-#endif /* NCURSES_UNIX */
+#endif /* NCURSES_UNIX && NCURSES_VERSION_PATCH < 20250913 */
return teco_cmdline_keymacro("MOUSE", -1, error);
}