aboutsummaryrefslogtreecommitdiff
path: root/scripts/squash_typos.py
diff options
context:
space:
mode:
authorRishikesh Vaishnav <rishhvaishnav@gmail.com>2021-12-20 08:54:05 -0800
committerGitHub <noreply@github.com>2021-12-20 08:54:05 -0800
commit9625832372e77c8a15f6ebb30df4fcbb6aba6fe8 (patch)
tree68286ea368f4a0c21eb3e824cd28407fffbf88af /scripts/squash_typos.py
parent63b21ab30df24fce469dffe3dbd2ef7ceab48a16 (diff)
downloadrneovim-9625832372e77c8a15f6ebb30df4fcbb6aba6fe8.tar.gz
rneovim-9625832372e77c8a15f6ebb30df4fcbb6aba6fe8.tar.bz2
rneovim-9625832372e77c8a15f6ebb30df4fcbb6aba6fe8.zip
fix(lsp): fix `nil`-index behavior for UTF-8 in `_str_*index_enc` methods (#16731)
Previously, the `_str_utfindex_enc` and `_str_byteindex_enc` helper functions would return `nil` when `offset_encoding == "utf-8"` and `index == nil`. Clearly, this doesn't reflect the expected behavior of the functions they're wrapping which would return the length of the line in this case. This should fix behavior with servers that use UTF-8 `offset_encoding` when applying text edits, formatting a range, and doing range code actions (though this isn't tested currently).
Diffstat (limited to 'scripts/squash_typos.py')
0 files changed, 0 insertions, 0 deletions