optional cwd bugfix

main
bhagwan 3 years ago
parent 619bdc70e4
commit daee2543c8

@ -5,7 +5,7 @@ M.separator = function()
end end
M.starts_with_separator = function(path) M.starts_with_separator = function(path)
return path:match("^[^"..M.separator().."]+") return path:find(M.separator()) == 1
end end
M.tail = (function() M.tail = (function()

@ -71,10 +71,8 @@ local function diagnostics_handler(opts, cb, _, entry)
icon = utils.ansi_codes[severity.color or "dark_grey"](icon) icon = utils.ansi_codes[severity.color or "dark_grey"](icon)
end end
if opts.file_icons or opts.git_icons then if opts.file_icons or opts.git_icons then
-- entry = icon .. utils.nbsp .. utils.nbsp .. entry
entry = icon .. utils.nbsp .. utils.nbsp .. entry entry = icon .. utils.nbsp .. utils.nbsp .. entry
else else
-- entry = icon .. utils.nbsp .. " " .. entry
entry = icon .. utils.nbsp .. " " .. entry entry = icon .. utils.nbsp .. " " .. entry
end end
end end

Loading…
Cancel
Save