Files
neovim/runtime/lua/vim
Riley Bruins e5e81262af 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
2024-06-19 09:28:44 -07:00
..
2024-05-27 20:48:46 +02:00
2024-06-15 07:04:27 +08:00
2024-06-08 21:38:06 +02:00
2024-06-07 10:55:14 +08:00
2024-03-06 10:45:22 +00:00
2024-04-26 15:13:06 +01:00
2024-05-27 20:48:46 +02:00
2024-01-16 09:33:10 +00:00
2024-05-27 20:48:46 +02:00
2024-03-16 19:26:10 +00:00
2024-03-16 19:26:10 +00:00
2024-06-08 21:38:06 +02:00
2024-04-30 07:04:42 +08:00
2024-06-03 15:33:10 +02:00
2024-03-09 11:21:55 +00:00