neovim/runtime
github-actions[bot] 03bd9147f0
fix(lsp): fix nil-index behavior for UTF-8 in _str_*index_enc methods (#16785)
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).

(cherry picked from commit 5f4c501cf1)

Co-authored-by: Rishikesh Vaishnav <rishhvaishnav@gmail.com>
2021-12-25 10:52:45 -05:00
..
autoload feat(runtime): new checkhealth filetype (#16708) 2021-12-23 08:38:56 -07:00
colors
compiler vim-patch:6c391a74fe90 (#15654) 2021-09-13 16:33:41 +02:00
doc fix(diagnostic): respect "if_many" source option for virtual text (#16697) 2021-12-17 19:44:16 -07:00
ftplugin feat(runtime): new checkhealth filetype (#16708) 2021-12-23 08:38:56 -07:00
indent vim-patch:partial 113cb513f76d (#16260) 2021-11-08 00:10:44 +01:00
keymap vim-patch:6c391a74fe90 (#15654) 2021-09-13 16:33:41 +02:00
lua fix(lsp): fix nil-index behavior for UTF-8 in _str_*index_enc methods (#16785) 2021-12-25 10:52:45 -05:00
macros
pack/dist/opt vim-patch:6304be625ce4 (#16450) 2021-11-27 19:39:42 +01:00
plugin vim-patch:519cc559b08b (#16340) 2021-11-17 10:02:59 +01:00
print
queries/c
spell
syntax feat(runtime): new checkhealth filetype (#16708) 2021-12-23 08:38:56 -07:00
tools vim-patch:6304be625ce4 (#16450) 2021-11-27 19:39:42 +01:00
tutor
bugreport.vim
CMakeLists.txt vim-patch:8.2.3676: unused runtime file (#16441) 2021-11-26 17:16:11 +01:00
delmenu.vim
filetype.vim vim-patch:8.2.3703: most people call F# "fsharp" and not "fs" (#16469) 2021-11-30 14:51:17 +01:00
ftoff.vim
ftplugin.vim
ftplugof.vim
indent.vim
indoff.vim
macmap.vim
makemenu.vim
menu.vim
mswin.vim
nvim.appdata.xml NVIM 0.6.0 2021-11-30 18:20:42 +01:00
nvim.desktop
nvim.png
optwin.vim
scripts.vim vim-patch:8.2.3686: filetype detection often mixes up Forth and F# 2021-11-27 19:21:57 +01:00
synmenu.vim