aboutsummaryrefslogtreecommitdiffstats
path: root/tag.c
diff options
context:
space:
mode:
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tag.c b/tag.c
index b1a2eb9..20a0a17 100644
--- a/tag.c
+++ b/tag.c
@@ -113,7 +113,7 @@ tag(Arg *arg) {
if(!sel)
return;
for(i = 0; i < ntags; i++)
- sel->tags[i] = False;
+ sel->tags[i] = (arg->i == -1) ? True : False;
sel->tags[arg->i] = True;
arrange();
}