diff options
| -rw-r--r-- | tag.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -108,7 +108,7 @@ tag(const char *arg) { | |||
| 108 | if(!sel) | 108 | if(!sel) |
| 109 | return; | 109 | return; |
| 110 | for(i = 0; i < ntags; i++) | 110 | for(i = 0; i < ntags; i++) |
| 111 | sel->tags[i] = arg != NULL; | 111 | sel->tags[i] = arg == NULL; |
| 112 | i = arg ? atoi(arg) : 0; | 112 | i = arg ? atoi(arg) : 0; |
| 113 | if(i >= 0 && i < ntags) | 113 | if(i >= 0 && i < ntags) |
| 114 | sel->tags[i] = True; | 114 | sel->tags[i] = True; |
| @@ -146,7 +146,7 @@ view(const char *arg) { | |||
| 146 | int i; | 146 | int i; |
| 147 | 147 | ||
| 148 | for(i = 0; i < ntags; i++) | 148 | for(i = 0; i < ntags; i++) |
| 149 | seltag[i] = arg != NULL; | 149 | seltag[i] = arg == NULL; |
| 150 | i = arg ? atoi(arg) : 0; | 150 | i = arg ? atoi(arg) : 0; |
| 151 | if(i >= 0 && i < ntags) | 151 | if(i >= 0 && i < ntags) |
| 152 | seltag[i] = True; | 152 | seltag[i] = True; |
