Fixes issue #242

This commit is contained in:
Juan Pablo Aroztegi 2011-09-17 23:37:16 +02:00
parent 708db8d88c
commit 594b9f508d

View File

@ -453,7 +453,7 @@ view_detach(Frame *f) {
event("ViewDetach %s %#C\n", v->name, c); event("ViewDetach %s %#C\n", v->name, c);
view_update(v); view_update(v);
if(view != selview && empty_p(v)) if(v != selview && empty_p(v))
view_destroy(v); view_destroy(v);
} }