fix(show_cwd_header): when set to 'true' and 'cwd' matches ':pwd'

main
bhagwan 2 years ago
parent 1a1d794f48
commit 3079c9561a

@ -479,9 +479,9 @@ M.set_header = function(opts, hdr_tbl)
val = function() val = function()
-- do not display header when we're inside our -- do not display header when we're inside our
-- cwd unless the caller specifically requested -- cwd unless the caller specifically requested
if opts.show_cwd_header == false if opts.show_cwd_header == false or
or (not opts.show_cwd_header and not opts.cwd) not opts.show_cwd_header and
or opts.cwd == vim.loop.cwd() then (not opts.cwd or opts.cwd == vim.loop.cwd()) then
return return
end end
local cwd = opts.cwd or vim.loop.cwd() local cwd = opts.cwd or vim.loop.cwd()

Loading…
Cancel
Save