From: arg@10ksloc.org Date: Tue, 1 Aug 2006 13:16:29 +0000 (+0200) Subject: saved 2LOC X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=b01a51a8449aa591a02ec22eb31850c2ae644687 saved 2LOC --- diff --git a/event.c b/event.c index 99216b3..a34bdc8 100644 --- 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; } }