fix(filename): use columns for shortening if using global statusline (#617)
This commit is contained in:
parent
7db1db3cd9
commit
181b14348f
@ -55,7 +55,7 @@ M.update_status = function(self)
|
||||
end
|
||||
|
||||
if self.options.shorting_target ~= 0 then
|
||||
local windwidth = vim.fn.winwidth(0)
|
||||
local windwidth = self.options.globalstatus and vim.go.columns or vim.fn.winwidth(0)
|
||||
local estimated_space_available = windwidth - self.options.shorting_target
|
||||
|
||||
local path_separator = package.config:sub(1, 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user