author | Anselm R. Garbe <arg@10kloc.org> |
Tue, 05 Sep 2006 09:37:45 +0200 | |
changeset 416 | e689e540607a |
parent 415 | ad2b6ce6e95b |
child 417 | a43c395003bc |
--- 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); }