From 3c9493e0dee876362e56404a2df0011fa03e72eb Mon Sep 17 00:00:00 2001 From: Rom Grk Date: Sat, 7 Nov 2020 05:14:58 -0500 Subject: [PATCH] fix: open buffers in right order (closes #31) --- lua/bufferline/state.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/lua/bufferline/state.lua b/lua/bufferline/state.lua index fdce4731..16e0c749 100644 --- a/lua/bufferline/state.lua +++ b/lua/bufferline/state.lua @@ -123,9 +123,6 @@ local function open_buffers(new_buffers) new_index = len(m.buffers) + 1 end - -- Reverse otherwise they're opened in the wrong order - new_buffers = reverse(new_buffers) - -- Insert the buffers where they go for i, new_buffer in ipairs(new_buffers) do if utils.index(m.buffers, new_buffer) == nil then