aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--event.c6
1 files changed, 2 insertions, 4 deletions
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;
}
}