Fix a->sel possibly being nil when it shouldn't

This commit is contained in:
Kris Maglione 2007-02-09 00:27:03 -05:00
parent 0c4d46e62f
commit ed5ff78e79

2
area.c
View File

@ -271,6 +271,8 @@ detach_from_area(Area *a, Frame *f) {
remove_frame(f);
if(a->sel == f)
a->sel = pr;
if(a->sel == nil)
a->sel = a->frame;
if(!a->floating) {
if(a->frame)