From 0ffc208472729c16faf62edc58807b2515f331ee Mon Sep 17 00:00:00 2001 From: John Foerch Date: Tue, 23 Feb 2010 22:22:12 -0500 Subject: [PATCH] session_load: remove unreachable condition since the previous patch, session_load's window-recycling loop no longer protects special buffers. this patch removes a condition which is now unreachable because of that change. --- modules/session.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/session.js b/modules/session.js index f38c643..0d4c7bc 100644 --- a/modules/session.js +++ b/modules/session.js @@ -111,10 +111,7 @@ for (let b = window.buffers.get_buffer(bi); b; b = window.buffers.get_buffer(bi)) { - if (b instanceof content_buffer) - kill_buffer(b, true); - else - bi++; + kill_buffer(b, true); } ++s; } -- 2.11.4.GIT