commit 85ad0e6b43b7890f11d8456f5396dcd7b69863b5
parent 58e1c6fbffd68cd7aaa597e84406d2b55ec64c12
Author: Cai.MY <cmy1113@outlook.com>
Date: Fri, 5 Aug 2022 21:23:01 +0800
fix(lsp): avoid ^M character in hover window on Windows (#19640)
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
@@ -106,6 +106,7 @@ end
---@private
local function split_lines(value)
+ value = string.gsub(value, '\r\n?', '\n')
return split(value, '\n', true)
end