format-on-save.nvim icon indicating copy to clipboard operation
format-on-save.nvim copied to clipboard

fix: properly handle multibyte characters

Open faergeek opened this issue 2 years ago • 0 comments

Neovim apis work in terms of bytes. But initially I thought that's not the case and used nr2char & char2nr to convert chars to numbers for diffing, which work in terms of unicode codepoints IIUC.

faergeek avatar Jan 02 '24 04:01 faergeek