vim-markdown
vim-markdown copied to clipboard
Fix the misalignment of foldtext in the presence of CJK characters
Handle characters such that len(c)>2 and strdisplaywidth(c)=2.
Current (buggy) (with g:vim_markdown_folding_style_pythonic == 1)
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
With this patch, the line counts are now properly alligned.