commit ed5ff78e79fcef03b9838a1be9baa80ea5874fb6 parent 0c4d46e62f629033566b8cfcc3d05de2c87051ad Author: Kris Maglione <jg@suckless.org> Date: Fri, 9 Feb 2007 00:27:03 -0500 Fix a->sel possibly being nil when it shouldn't Diffstat:
| area.c | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/area.c b/area.c @@ -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)