Mercurial > aewl
diff tag.c @ 416:e689e540607a
sanders toggletag patch is much more elegant
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Tue, 05 Sep 2006 09:37:45 +0200 |
parents | 761d0cd6e504 |
children | a31de8605f72 |
line wrap: on
line diff
--- a/tag.c Tue Sep 05 09:02:37 2006 +0200 +++ b/tag.c Tue Sep 05 09:37:45 2006 +0200 @@ -136,6 +136,6 @@ for(i = 0; i < ntags && !sel->tags[i]; i++); if(i == ntags) sel->tags[arg->i] = True; - for(sel->weight = 0; sel->weight < ntags && !sel->tags[sel->weight]; sel->weight++); + sel->weight = (i == ntags) ? arg->i : i; arrange(NULL); }