diff --git a/lua/lualine/components/buffers/init.lua b/lua/lualine/components/buffers/init.lua index f8ed029..96d6f63 100644 --- a/lua/lualine/components/buffers/init.lua +++ b/lua/lualine/components/buffers/init.lua @@ -96,7 +96,7 @@ function M:update_status() if type(max_length) == 'function' then max_length = max_length(self) end - + if max_length == 0 then max_length = math.floor(2 * vim.o.columns / 3) end diff --git a/lua/lualine/components/tabs/init.lua b/lua/lualine/components/tabs/init.lua index 3304198..59c7f7c 100644 --- a/lua/lualine/components/tabs/init.lua +++ b/lua/lualine/components/tabs/init.lua @@ -79,7 +79,7 @@ function M:update_status() if type(max_length) == 'function' then max_length = max_length(self) end - + if max_length == 0 then max_length = math.floor(vim.o.columns / 3) end