A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/392cb7ac0cf7fd2ede1d3c22c4bbb47f92a55637 below:

pass offset_encoding in formatexpr() (#18084) · neovim/neovim@392cb7a · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed Original file line number Diff line number Diff line change

@@ -1719,9 +1719,9 @@ function lsp.formatexpr(opts)

1719 1719

local client_results = vim.lsp.buf_request_sync(0, "textDocument/rangeFormatting", params, timeout_ms)

1720 1720 1721 1721

-- Apply the text edits from one and only one of the clients.

1722 -

for _, response in pairs(client_results) do

1722 +

for client_id, response in pairs(client_results) do

1723 1723

if response.result then

1724 -

vim.lsp.util.apply_text_edits(response.result, 0)

1724 +

vim.lsp.util.apply_text_edits(response.result, 0, vim.lsp.get_client_by_id(client_id).offset_encoding)

1725 1725

return 0

1726 1726

end

1727 1727

end

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4