A RetroSearch Logo

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

Search Query:

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

resolve nil arguments to API functions (#16889) · neovim/neovim@36662c9 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+10

-10

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+10

-10

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

@@ -1372,16 +1372,16 @@ function M.reset(namespace, bufnr)

1372 1372

diagnostic_cache[iter_bufnr][iter_namespace] = nil

1373 1373

M.hide(iter_namespace, iter_bufnr)

1374 1374

end

1375 -

end

1376 1375 1377 -

vim.api.nvim_buf_call(bufnr, function()

1378 -

vim.api.nvim_command(

1379 -

string.format(

1380 -

"doautocmd <nomodeline> DiagnosticChanged %s",

1381 -

vim.fn.fnameescape(vim.api.nvim_buf_get_name(bufnr))

1376 +

vim.api.nvim_buf_call(iter_bufnr, function()

1377 +

vim.api.nvim_command(

1378 +

string.format(

1379 +

"doautocmd <nomodeline> DiagnosticChanged %s",

1380 +

vim.fn.fnameescape(vim.api.nvim_buf_get_name(iter_bufnr))

1381 +

)

1382 1382

)

1383 -

)

1384 -

end)

1383 +

end)

1384 +

end

1385 1385

end

1386 1386 1387 1387

--- Add all diagnostics to the quickfix list.

Original file line number Diff line number Diff line change

@@ -1677,7 +1677,7 @@ function M.symbols_to_items(symbols, bufnr)

1677 1677

end

1678 1678

return _items

1679 1679

end

1680 -

return _symbols_to_items(symbols, {}, bufnr)

1680 +

return _symbols_to_items(symbols, {}, bufnr or 0)

1681 1681

end

1682 1682 1683 1683

--- Removes empty lines from the beginning and end.

@@ -1796,7 +1796,7 @@ end

1796 1796

---@returns { textDocument = { uri = `current_file_uri` }, range = { start =

1797 1797

---`current_position`, end = `current_position` } }

1798 1798

function M.make_range_params(window, offset_encoding)

1799 -

local buf = vim.api.nvim_win_get_buf(window)

1799 +

local buf = vim.api.nvim_win_get_buf(window or 0)

1800 1800

offset_encoding = offset_encoding or M._get_offset_encoding(buf)

1801 1801

local position = make_position_param(window, offset_encoding)

1802 1802

return {

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