From dd3f9e1e88137ea61dbbc18411f028511a2de8c2 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 14 Dec 2007 02:33:03 +0000 Subject: [PATCH] 03:29:57 didn't your removal of the ==0 check introduce a call to scr_page(UP)? 03:29:58 moa pls 03:30:04 it did 03:30:18 but if i coded that function, it will not crash 03:30:30 if i had coded that function it would have oen argument only, too :( --- src/command.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/command.C b/src/command.C index 86a81d61..705a4baf 100644 --- a/src/command.C +++ b/src/command.C @@ -1090,8 +1090,8 @@ rxvt_term::text_blink_cb (ev::timer &w, int revents) 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 (); @@ -1116,7 +1116,7 @@ rxvt_term::sel_scroll_cb (ev::timer &w, int revents) 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) -- 2.34.1