neovim/runtime
github-actions[bot] 222d1414dc
fix(lsp): correctly align start and end range to codepoints during incremental sync (#16670)
Closes #16624

Fixes two issues with aligning the start position and end position to
codepoints when calculating the start and end range.

When aligning the start position:
* use aligned byte index to calculate character index rather than 
  the unadjusted byte

When aligning the end position:
* do not adjust the end byte if it falls on a UTF-8 codepoint
* align byte to the first byte of the next codepoint rather than the
  last byte of the current codepoint
* compute character character end range on the aligned byte index

This commit also adds additional test coverage, including multibyte operations
that previously failed before this commit.
2021-12-21 09:24:50 -08:00
..
autoload vim-patch:8.2.3703: most people call F# "fsharp" and not "fs" (#16469) 2021-11-30 14:51:17 +01:00
colors vim-patch:4f4d51a942cc 2021-05-01 14:22:52 -04:00
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 vim-patch:6304be625ce4 (#16450) 2021-11-27 19:39:42 +01: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): correctly align start and end range to codepoints during incremental sync (#16670) 2021-12-21 09:24:50 -08:00
macros vim-patch:4072ba571bab 2021-05-01 22:29:03 -04:00
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 vim-patch:8.2.0038: spell suggestions insufficiently tested 2021-06-12 13:06:49 -04:00
syntax vim-patch:6304be625ce4 (#16450) 2021-11-27 19:39:42 +01:00
tools vim-patch:6304be625ce4 (#16450) 2021-11-27 19:39:42 +01:00
tutor fix(tutor): formatting, layout #15098 2021-08-30 05:27:35 -07:00
bugreport.vim
CMakeLists.txt vim-patch:8.2.3676: unused runtime file (#16441) 2021-11-26 17:16:11 +01:00
delmenu.vim vim-patch:8.1.2416: loading menus sets v:errmsg 2021-04-11 17:05:42 -04:00
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 feat(runtime): Allow lua to be used in ftplugin 2021-06-11 01:01:02 +06:00
ftplugof.vim
indent.vim feat(runtime): Allow lua to be used in indent 2021-06-11 01:01:02 +06:00
indoff.vim
macmap.vim
makemenu.vim vim-patch:95a9dd1efc5a 2021-04-27 09:21:32 -04:00
menu.vim vim-patch:65e0d77a66b7 2021-04-28 21:57:50 -04:00
mswin.vim
nvim.appdata.xml NVIM 0.6.0 2021-11-30 18:20:42 +01:00
nvim.desktop vim-patch:23515b4ef758 2021-05-01 22:29:03 -04:00
nvim.png
optwin.vim vim-patch:8.1.2019: 'cursorline' always highlights the whole line (#15161) 2021-07-30 21:51:26 -04:00
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 vim-patch:4466ad6baa22 2021-05-01 22:29:02 -04:00