Mercurial > aewl
comparison 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 |
comparison
equal
deleted
inserted
replaced
415:ad2b6ce6e95b | 416:e689e540607a |
---|---|
134 | 134 |
135 sel->tags[arg->i] = !sel->tags[arg->i]; | 135 sel->tags[arg->i] = !sel->tags[arg->i]; |
136 for(i = 0; i < ntags && !sel->tags[i]; i++); | 136 for(i = 0; i < ntags && !sel->tags[i]; i++); |
137 if(i == ntags) | 137 if(i == ntags) |
138 sel->tags[arg->i] = True; | 138 sel->tags[arg->i] = True; |
139 for(sel->weight = 0; sel->weight < ntags && !sel->tags[sel->weight]; sel->weight++); | 139 sel->weight = (i == ntags) ? arg->i : i; |
140 arrange(NULL); | 140 arrange(NULL); |
141 } | 141 } |