Backout aforementioned for-loop cleanup for breakage

This commit is contained in:
Kris Maglione 2007-02-08 11:49:20 -05:00
parent 7f55639aa7
commit 5c56c012d5

8
view.c
View File

@ -87,11 +87,9 @@ destroy_view(View *v) {
for(i=&view; *i; i=&(*i)->next)
if(*i == v) break;
*i = v->next;
if(screen->sel == v) {
for(v = view; v && v->next; v = v->next)
if(v->next == *i) break;
screen->sel = v;
}
if(screen->sel == v)
for(screen->sel=view; screen->sel && screen->sel->next; screen->sel=screen->sel->next)
if(screen->sel->next == *i) break;
write_event("DestroyTag %s\n", v->name);
free(v);
}