A RetroSearch Logo

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

Search Query:

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

fetch offset_encoding from client in references (#17104) · neovim/neovim@a0201b6 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+3

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+3

-2

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

@@ -166,18 +166,19 @@ M['textDocument/references'] = function(_, result, ctx, config)

166 166

if not result or vim.tbl_isempty(result) then

167 167

vim.notify('No references found')

168 168

else

169 +

local client = vim.lsp.get_client_by_id(ctx.client_id)

169 170

config = config or {}

170 171

if config.loclist then

171 172

vim.fn.setloclist(0, {}, ' ', {

172 173

title = 'References';

173 -

items = util.locations_to_items(result, ctx.offset_encoding);

174 +

items = util.locations_to_items(result, client.offset_encoding);

174 175

context = ctx;

175 176

})

176 177

api.nvim_command("lopen")

177 178

else

178 179

vim.fn.setqflist({}, ' ', {

179 180

title = 'References';

180 -

items = util.locations_to_items(result, ctx.offset_encoding);

181 +

items = util.locations_to_items(result, client.offset_encoding);

181 182

context = ctx;

182 183

})

183 184

api.nvim_command("botright copen")

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