mirror of
https://github.com/neovim/neovim.git
synced 2024-12-22 04:05:09 -07:00
9625832372
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). |
||
---|---|---|
.. | ||
_snippet.lua | ||
buf.lua | ||
codelens.lua | ||
diagnostic.lua | ||
handlers.lua | ||
health.lua | ||
log.lua | ||
protocol.lua | ||
rpc.lua | ||
sync.lua | ||
tagfunc.lua | ||
util.lua |