shithub: orca

Download patch

ref: cb237dbde9ce7ff28eb0f20da914df57161781a1
parent: 8514233eaed06f20f395b958db597b5aa5f5c794
author: cancel <cancel@cancel.fm>
date: Mon Dec 17 15:14:38 EST 2018

Add forward-compatible min version test for mouse scroll

--- a/tui_main.c
+++ b/tui_main.c
@@ -1203,7 +1203,7 @@
       }
     }
   } 
-#if NCURSES_MOUSE_VERSION != 1
+#if defined(NCURSES_MOUSE_VERSION) && NCURSES_MOUSE_VERSION >= 2
 else {
     if (mouse_bstate & BUTTON4_PRESSED) {
       a->grid_scroll_y -= 1;