mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
refactor(diagnostic): remove hack (#16685)
No longer required since #16548.
This commit is contained in:
parent
b515160cef
commit
80210c189f
@ -299,11 +299,6 @@ local function restore_extmarks(bufnr, last)
|
|||||||
if not found[extmark[1]] then
|
if not found[extmark[1]] then
|
||||||
local opts = extmark[4]
|
local opts = extmark[4]
|
||||||
opts.id = extmark[1]
|
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)
|
pcall(vim.api.nvim_buf_set_extmark, bufnr, ns, extmark[2], extmark[3], opts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user