fatih / vim-go

Go development plugin for Vim
https://www.patreon.com/bhcleek
Other
15.98k stars 1.45k forks source link

lsp: fix text edit handling #3644

Closed bhcleek closed 7 months ago

bhcleek commented 7 months ago

Fix text edit handling when multi-byte characters are involved. Use strcharpart() instead of treating the text to be modified as a slice of bytes, because the output of go#lsp#PositionOf is character position, not byte position.

Fixes #3641