diff options
author | Raphael <glepnir@neovim.pro> | 2023-07-01 18:42:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-01 03:42:37 -0700 |
commit | ba8f19ebb67ca27d746f4b1cd902ab3d807eace3 (patch) | |
tree | d32c725a4b26c0ddffb02c88ba33aeb25a669770 /runtime/lua/vim/lsp/rpc.lua | |
parent | 11844dde81c41bded54f2383b57f8eef406f2736 (diff) | |
download | rneovim-ba8f19ebb67ca27d746f4b1cd902ab3d807eace3.tar.gz rneovim-ba8f19ebb67ca27d746f4b1cd902ab3d807eace3.tar.bz2 rneovim-ba8f19ebb67ca27d746f4b1cd902ab3d807eace3.zip |
fix(lsp): lint warnings, default offset_encoding #24046
- fix lint / analysis warnings
- locations_to_items(): get default offset_encoding from active client
- character_offset(): get default offset_encoding from active client
Diffstat (limited to 'runtime/lua/vim/lsp/rpc.lua')
-rw-r--r-- | runtime/lua/vim/lsp/rpc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/rpc.lua b/runtime/lua/vim/lsp/rpc.lua index 64bc732bdf..6552eaa800 100644 --- a/runtime/lua/vim/lsp/rpc.lua +++ b/runtime/lua/vim/lsp/rpc.lua @@ -36,7 +36,7 @@ end local function parse_headers(header) assert(type(header) == 'string', 'header must be a string') local headers = {} - for line in vim.gsplit(header, '\r\n', true) do + for line in vim.gsplit(header, '\r\n', { plain = true }) do if line == '' then break end |