aewl

diff tag.c @ 573:797e27162b43

fififif
author arg@mig29
date Wed, 22 Nov 2006 16:17:50 +0100
parents a5567a0d3011
children 601842ee4484
line diff
     1.1 --- a/tag.c	Wed Nov 22 14:57:09 2006 +0100
     1.2 +++ b/tag.c	Wed Nov 22 16:17:50 2006 +0100
     1.3 @@ -104,7 +104,6 @@
     1.4  	if(!matched)
     1.5  		for(i = 0; i < ntags; i++)
     1.6  			c->tags[i] = seltag[i];
     1.7 -	for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++);
     1.8  }
     1.9  
    1.10  void
    1.11 @@ -116,7 +115,6 @@
    1.12  	for(i = 0; i < ntags; i++)
    1.13  		sel->tags[i] = False;
    1.14  	sel->tags[arg->i] = True;
    1.15 -	sel->weight = arg->i;
    1.16  	arrange();
    1.17  }
    1.18  
    1.19 @@ -130,6 +128,5 @@
    1.20  	for(i = 0; i < ntags && !sel->tags[i]; i++);
    1.21  	if(i == ntags)
    1.22  		sel->tags[arg->i] = True;
    1.23 -	sel->weight = (i == ntags) ? arg->i : i;
    1.24  	arrange();
    1.25  }