diff options
author | Riley Bruins <ribru17@hotmail.com> | 2024-06-19 09:28:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 09:28:44 -0700 |
commit | e5e81262af88ec13b456d68ffb5a6ffafe497dab (patch) | |
tree | f35ac3727556fe7246b59975d5c94e3c406bf964 /scripts/gen_help_html.lua | |
parent | fe5d1279a4378582898e2e281fe5778d81c30017 (diff) | |
download | rneovim-e5e81262af88ec13b456d68ffb5a6ffafe497dab.tar.gz rneovim-e5e81262af88ec13b456d68ffb5a6ffafe497dab.tar.bz2 rneovim-e5e81262af88ec13b456d68ffb5a6ffafe497dab.zip |
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
Diffstat (limited to 'scripts/gen_help_html.lua')
0 files changed, 0 insertions, 0 deletions