ref: 978d241c356e31670b8923e863615ec5b831d8ae
parent: 243568958f713e1968e5fc2d518f15c3e85ca087
parent: d6ffb115fe1df21fe6dafc0d9582029b4d2203be
author: cancel <cancel@cancel.fm>
date: Mon Dec 17 14:51:00 EST 2018
Merge pull request #2 from npisanti/master fixes for ncurses mouse versions
--- a/tui_main.c
+++ b/tui_main.c
@@ -1202,7 +1202,9 @@
a->is_draw_dirty = true;
}
}
- } else {
+ }
+#if NCURSES_MOUSE_VERSION != 1
+else {
if (mouse_bstate & BUTTON4_PRESSED) {
a->grid_scroll_y -= 1;
a->is_draw_dirty = true;
@@ -1211,6 +1213,7 @@
a->is_draw_dirty = true;
}
}
+#endif
}
void ged_adjust_rulers_relative(Ged* a, Isz delta_y, Isz delta_x) {