sanders toggletag patch is much more elegant
Anselm R. Garbe arg@10kloc.org
Tue, 05 Sep 2006 09:37:45 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
tag.c
→
tag.c
@@ -136,6 +136,6 @@ sel->tags[arg->i] = !sel->tags[arg->i];
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); }