From 1b63f832c528958042d72fddc318af5aefdcb68a Mon Sep 17 00:00:00 2001 From: "arg@10ksloc.org" Date: Tue, 1 Aug 2006 12:39:14 +0200 Subject: applied Jukkas prev/next patch with XK_{h,l} --- tag.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tag.c') diff --git a/tag.c b/tag.c index c42a760..6b7e184 100644 --- a/tag.c +++ b/tag.c @@ -216,3 +216,17 @@ view(Arg *arg) arrange(NULL); drawall(); } + +void +viewnext(Arg *arg) +{ + arg->i = (tsel < TLast-1) ? tsel+1 : 0; + view(arg); +} + +void +viewprev(Arg *arg) +{ + arg->i = (tsel > 0) ? tsel-1 : TLast-1; + view(arg); +} -- cgit v1.2.3