session_load: fix case of appending session to existing window
commit7eb4f716eab964a83e69f22834ee353530d075be
authorJohn Foerch <jjfoerch@earthlink.net>
Wed, 24 Feb 2010 20:01:43 +0000 (24 15:01 -0500)
committerJohn Foerch <jjfoerch@earthlink.net>
Wed, 24 Feb 2010 21:35:59 +0000 (24 16:35 -0500)
tree8eb496657e56f2cd966564658dd801da87efb5dd
parent0ffc208472729c16faf62edc58807b2515f331ee
session_load: fix case of appending session to existing window

the changes of yesterday to make session_load deal more robustly with
special buffers failed to deal with an important case: when recycling only
some buffers in the window, or only appending the session to the window.
that patch destroyed all existing special buffers in the window, which is
clearly not the right behavior.

this patch makes session_load only destroy special buffers which are
targetted for recycling.
modules/session.js