diff options
Diffstat (limited to 'tag.c')
-rw-r--r-- | tag.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -136,6 +136,6 @@ toggletag(Arg *arg) 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); } |