refactor(diagnostic): remove hack (#16689)

No longer required since #16548.
This commit is contained in:
github-actions[bot] 2021-12-16 12:18:45 -07:00 committed by GitHub
parent 1b54344c11
commit 8c6a4fab66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,11 +297,6 @@ local function restore_extmarks(bufnr, last)
if not found[extmark[1]] then
local opts = extmark[4]
opts.id = extmark[1]
-- HACK: end_row should be end_line
if opts.end_row then
opts.end_line = opts.end_row
opts.end_row = nil
end
pcall(vim.api.nvim_buf_set_extmark, bufnr, ns, extmark[2], extmark[3], opts)
end
end