mirror of
https://github.com/neovim/neovim.git
synced 2025-11-09 20:15:24 +00:00
Remove resolve_bufnr/lualint
This commit is contained in:
@@ -26,13 +26,6 @@ local function remove_prefix(prefix, word)
|
|||||||
return word:sub(prefix_length + 1)
|
return word:sub(prefix_length + 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function resolve_bufnr(bufnr)
|
|
||||||
if bufnr == nil or bufnr == 0 then
|
|
||||||
return api.nvim_get_current_buf()
|
|
||||||
end
|
|
||||||
return bufnr
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.apply_edit_to_lines(lines, start_pos, end_pos, new_lines)
|
function M.apply_edit_to_lines(lines, start_pos, end_pos, new_lines)
|
||||||
-- 0-indexing to 1-indexing makes things look a bit worse.
|
-- 0-indexing to 1-indexing makes things look a bit worse.
|
||||||
local i_0 = start_pos[1] + 1
|
local i_0 = start_pos[1] + 1
|
||||||
|
|||||||
Reference in New Issue
Block a user