applied Jukkas prev/next patch with XK_{h,l}

This commit is contained in:
arg@10ksloc.org
2006-08-01 12:39:14 +02:00
parent 7b5638f61d
commit 1b63f832c5
3 changed files with 18 additions and 0 deletions

14
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);
}