aewl

diff tag.c @ 144:e61447a7f249

applied Jukkas prev/next patch with XK_{h,l}
author arg@10ksloc.org
date Tue, 01 Aug 2006 12:39:14 +0200
parents 36cabfe408cd
children f328ce9c558c
line diff
     1.1 --- a/tag.c	Tue Aug 01 12:32:33 2006 +0200
     1.2 +++ b/tag.c	Tue Aug 01 12:39:14 2006 +0200
     1.3 @@ -216,3 +216,17 @@
     1.4  	arrange(NULL);
     1.5  	drawall();
     1.6  }
     1.7 +
     1.8 +void
     1.9 +viewnext(Arg *arg)
    1.10 +{
    1.11 +	arg->i = (tsel < TLast-1) ? tsel+1 : 0;
    1.12 +	view(arg);
    1.13 +}
    1.14 +
    1.15 +void
    1.16 +viewprev(Arg *arg)
    1.17 +{
    1.18 +	arg->i = (tsel > 0) ? tsel-1 : TLast-1;
    1.19 +	view(arg);
    1.20 +}