JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
saved 2LOC
authorarg@10ksloc.org <unknown>
Tue, 1 Aug 2006 13:16:29 +0000 (15:16 +0200)
committerarg@10ksloc.org <unknown>
Tue, 1 Aug 2006 13:16:29 +0000 (15:16 +0200)
event.c

diff --git a/event.c b/event.c
index 99216b3..a34bdc8 100644 (file)
--- a/event.c
+++ b/event.c
@@ -116,12 +116,10 @@ buttonpress(XEvent *e)
                        }
                        break;
                case Button4:
-                       a.i = (tsel + 1 < TLast) ? tsel + 1 : 0;
-                       view(&a);
+                       viewnext(&a);
                        break;
                case Button5:
-                       a.i = (tsel - 1 >= 0) ? tsel - 1 : TLast - 1;
-                       view(&a);
+                       viewprev(&a);
                        break;
                }
        }