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

Fix the misalignment of foldtext in the presence of CJK characters

Open tomtomjhj opened this issue 5 years ago • 0 comments

Handle characters such that len(c)>2 and strdisplaywidth(c)=2.

Current (buggy) (with g:vim_markdown_folding_style_pythonic == 1) image On line 15, I typed two Korean characters whose len is 3 and strdisplaywidth is 2. As a result, the fold text for that line is 2 characters off.

Fixed image With this patch, the line counts are now properly alligned.

tomtomjhj avatar Sep 02 '20 12:09 tomtomjhj