Files
neovim/runtime
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
..
2021-05-01 14:22:52 -04:00
2021-09-13 16:33:41 +02:00
2021-12-16 21:46:13 +01:00
2021-12-16 21:46:13 +01:00
2021-12-06 13:55:38 +01:00
2021-09-13 16:33:41 +02:00
2021-05-01 22:29:03 -04:00
2021-11-17 10:02:59 +01:00
2021-12-16 21:46:13 +01:00
2021-11-27 19:39:42 +01:00
2021-12-16 21:46:13 +01:00
2021-04-28 21:57:50 -04:00
2021-11-30 18:20:42 +01:00
2021-05-01 22:29:03 -04:00
2021-05-01 22:29:02 -04:00