Mercurial > aewl
changeset 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 | ad2b6ce6e95b |
children | a43c395003bc |
files | tag.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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); }