vim-prettier
vim-prettier copied to clipboard
fix s:getCharPosition with strchars function
Summary
The old getCharPosition returns bytes count and it's incorrect when the content contains utf-8 chars, which cause the range-start/range-end args sent to prettier cli incorrect.