diff options
author | Tristan Knight <admin@snappeh.com> | 2024-09-05 08:23:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-05 00:23:11 -0700 |
commit | 882a450a2982caa05fcbbe90e94246a8c2b45b8b (patch) | |
tree | e42f1e5ea42016e4aca4afbfc641592dd8ded98b /test/testutil.lua | |
parent | 220b8aa6fe4be4e8f13600a5d7ae19fef79ba53a (diff) | |
download | rneovim-882a450a2982caa05fcbbe90e94246a8c2b45b8b.tar.gz rneovim-882a450a2982caa05fcbbe90e94246a8c2b45b8b.tar.bz2 rneovim-882a450a2982caa05fcbbe90e94246a8c2b45b8b.zip |
fix(lsp): handle locations exceeding line length #30253
Problem:
LSP spec [states](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#position)
that "if the character value is greater than the line length it defaults
back to the line length", but `locations_to_items` fails in that case.
Solution:
Adjust locations_to_items to follow the spec.
closes #28281
Diffstat (limited to 'test/testutil.lua')
0 files changed, 0 insertions, 0 deletions