equal
deleted
inserted
replaced
106 int i; |
106 int i; |
107 |
107 |
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; |
115 lt->arrange(); |
115 lt->arrange(); |
116 } |
116 } |
144 void |
144 void |
145 view(const char *arg) { |
145 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; |
153 lt->arrange(); |
153 lt->arrange(); |
154 } |
154 } |