scr_page(UP)?
03:29:58 <schmorp> moa pls
03:30:04 <schmorp> it did
03:30:18 <schmorp> but if i coded that function, it will not crash
03:30:30 <schmorp> if i had coded that function it would have oen argument only, too :(
void
rxvt_term::cont_scroll_cb (ev::timer &w, int revents)
{
- if ((scrollbar_isUp() || scrollbar_isDn()) &&
- scr_page (scrollbar_isUp() ? UP : DN, 1))
+ if ((scrollbar_isUp () || scrollbar_isDn ())
+ && scr_page (scrollbar_isUp () ? UP : DN, 1))
want_refresh = 1;
else
w.stop ();
void
rxvt_term::slip_wheel_cb (ev::timer &w, int revents)
{
- if (scr_page (mouse_slip_wheel_speed < 0 ? DN : UP, abs (mouse_slip_wheel_speed)))
+ if (scr_changeview (view_start - mouse_slip_wheel_speed))
want_refresh = 1;
if (view_start == top_row || view_start == 0 || mouse_slip_wheel_speed == 0)