Files
nvim-cmp/lua/cmp
Javier Lopez 9734453d77 fix(ghost_text): generate it using chars instead of bytes (#471)
Previously if the completion entry text had a multibyte character the
ghostly text renderd improperly, for example:

The cursor position is "|"

1. In this case the ghost text was spliting a multibyte character.

entry: comunicación
prev:  comunicacio|<b3>n
now:   comunicacio|n

2. In this case the multibyte character was before meking the index
   wrong, therefore presenting an extra character of the entry as ghost text.

entry: árbol
prev:  arbol|l
now:   arbol|

With this changes the calculation for the bytes to show is done based on
characters avoiding both of the issues above.
2021-11-05 11:49:42 +09:00
..
2021-11-03 02:29:06 +09:00
2021-11-03 02:29:06 +09:00
2021-11-03 02:29:06 +09:00
2021-08-04 01:07:12 +09:00
2021-11-03 03:16:45 +09:00
2021-11-03 02:29:06 +09:00
2021-08-27 23:06:35 +09:00
2021-10-16 13:27:36 +09:00
2021-11-04 02:31:42 +09:00
2021-10-19 14:38:10 +09:00
2021-08-27 23:26:54 +09:00
2021-10-23 00:38:55 +09:00