Files
neovim/runtime/lua/vim
Riley Bruins 21157459fe fix(diagnostics): don't apply extmarks to invalid lines #29321
Problem:
If there are errors in the last line of a buffer, something like `Gdk` or
`G2k3J` will produce an error (at least with `lua_ls`):

    Error executing vim.schedule lua callback:
    .../neovim/share/nvim/runtime/lua/vim/diagnostic.lua:1446: Invalid 'line': out of range

Solution:
Only set extmarks if the target buffer line still exists

(cherry picked from commit e5e81262af)
2024-08-02 16:04:35 +02:00
..
2024-03-06 10:45:22 +00:00
2024-04-26 15:13:06 +01:00
2024-01-16 09:33:10 +00:00
2024-05-15 07:18:33 +08:00
2024-01-19 11:54:04 +00:00
2024-05-15 07:18:33 +08:00
2024-03-16 19:26:10 +00:00
2024-03-16 19:26:10 +00:00
2024-04-30 07:04:42 +08:00