aewl

diff event.c @ 149:332fcc6d4f88

saved 2LOC
author arg@10ksloc.org
date Tue, 01 Aug 2006 15:16:29 +0200
parents 5267e1204367
children 02545d36e9d3
line diff
     1.1 --- a/event.c	Tue Aug 01 14:46:01 2006 +0200
     1.2 +++ b/event.c	Tue Aug 01 15:16:29 2006 +0200
     1.3 @@ -116,12 +116,10 @@
     1.4  			}
     1.5  			break;
     1.6  		case Button4:
     1.7 -			a.i = (tsel + 1 < TLast) ? tsel + 1 : 0;
     1.8 -			view(&a);
     1.9 +			viewnext(&a);
    1.10  			break;
    1.11  		case Button5:
    1.12 -			a.i = (tsel - 1 >= 0) ? tsel - 1 : TLast - 1;
    1.13 -			view(&a);
    1.14 +			viewprev(&a);
    1.15  			break;
    1.16  		}
    1.17  	}