fix(lsp): avoid ^M character in hover window on Windows (#19640)

This commit is contained in:
Cai.MY 2022-08-05 21:23:01 +08:00 committed by GitHub
parent 58e1c6fbff
commit 85ad0e6b43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,7 @@ end
---@private
local function split_lines(value)
value = string.gsub(value, '\r\n?', '\n')
return split(value, '\n', true)
end