mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.2.0901: formatting CJK text isn't optimal
Problem: Formatting CJK text isn't optimal. Solution: Properly break CJK lines. (closes #3875)
This commit is contained in:
@@ -1967,7 +1967,10 @@ do_join(
|
||||
&& (!has_format_option(FO_MBYTE_JOIN)
|
||||
|| (mb_ptr2char(curr) < 0x100 && endcurr1 < 0x100))
|
||||
&& (!has_format_option(FO_MBYTE_JOIN2)
|
||||
|| mb_ptr2char(curr) < 0x100 || endcurr1 < 0x100)
|
||||
|| (mb_ptr2char(curr) < 0x100
|
||||
&& !(enc_utf8 && utf_eat_space(endcurr1)))
|
||||
|| (endcurr1 < 0x100
|
||||
&& !(enc_utf8 && utf_eat_space(mb_ptr2char(curr)))))
|
||||
)
|
||||
{
|
||||
// don't add a space if the line is ending in a space
|
||||
|
Reference in New Issue
Block a user