neovim/test/functional
Rishikesh Vaishnav 36c401db24
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-17 18:05:00 -08:00
..
api test: remove references to misc1.c 2021-12-11 07:10:01 +08:00
autocmd feat: add autocommand event when search wraps around (#8487) 2021-12-10 12:28:25 -07:00
core chore: fix typos (#16361) 2021-11-27 11:10:48 -05:00
editor fix(input): never reinterpret unmapped ALT- chrods in Terminal mode (#16222) 2021-11-04 07:43:05 -06:00
ex_cmds vim-patch:8.2.3618: getcwd() is unclear about how 'autochdir' is used 2021-11-19 20:07:04 +08:00
fixtures NVIM 0.6.0 2021-11-30 18:20:42 +01:00
legacy vim-patch:8.2.3671: restarting Insert mode in prompt buffer too often 2021-12-07 11:34:28 +00:00
lua perf: pre-compile embedded Lua source into bytecode (#16631) 2021-12-16 09:27:39 -07:00
options fix(options): using :set fillchars should clear local value 2021-11-17 07:11:46 +08:00
plugin fix(lsp): correctly align start and end range to codepoints during incremental sync (#16670) 2021-12-17 18:05:00 -08:00
provider refactor(tests): use assert_alive() #15546 2021-09-01 09:42:53 -07:00
shada refactor(tests): remove redir_exec #15718 2021-09-19 02:29:37 -07:00
terminal perf: pre-compile embedded Lua source into bytecode (#16631) 2021-12-16 09:27:39 -07:00
treesitter feat(ts): add support for multiline nodes in get_node_text (#14999) 2021-12-12 12:05:39 +01:00
ui test(fold): add test for CursorLineFold 2021-12-08 21:47:59 -05:00
vimscript fix(screenpos, float): add top and left border adjustment 2021-12-15 22:40:10 +08:00
example_spec.lua screen.lua: remove screen:_on_event #11488 2019-12-01 01:06:10 -08:00
helpers.lua test: fix running functional tests under gdbserver 2021-09-20 18:10:40 +05:30
preload.lua test/functional/preload.lua: _set_fmode for Windows 2019-09-25 05:47:15 +02:00