vim-prettier icon indicating copy to clipboard operation
vim-prettier copied to clipboard

fix s:getCharPosition with strchars function

Open zhengpd opened this issue 3 years ago • 0 comments

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.

zhengpd avatar Jul 09 '21 14:07 zhengpd