diff options
author | Cai.MY <cmy1113@outlook.com> | 2022-08-05 21:23:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 15:23:01 +0200 |
commit | 85ad0e6b43b7890f11d8456f5396dcd7b69863b5 (patch) | |
tree | beec246ec5d5025b805debbc266ec50047969302 /runtime/lua/vim/lsp/util.lua | |
parent | 58e1c6fbffd68cd7aaa597e84406d2b55ec64c12 (diff) | |
download | rneovim-85ad0e6b43b7890f11d8456f5396dcd7b69863b5.tar.gz rneovim-85ad0e6b43b7890f11d8456f5396dcd7b69863b5.tar.bz2 rneovim-85ad0e6b43b7890f11d8456f5396dcd7b69863b5.zip |
fix(lsp): avoid ^M character in hover window on Windows (#19640)
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 8e89d92a56..eac21db386 100644 --- 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 |