vim-patch:8.2.0901: formatting CJK text isn't optimal

Problem:    Formatting CJK text isn't optimal.
Solution:   Properly break CJK lines. (closes vim/vim#3875)
e52702f003
This commit is contained in:
Jan Edmund Lazo
2020-10-22 21:02:42 -04:00
parent 9280a69a6d
commit 2894649c2e
8 changed files with 356 additions and 82 deletions

View File

@@ -142,7 +142,6 @@ static void changed_common(linenr_T lnum, colnr_T col, linenr_T lnume,
long xtra)
{
int i;
int cols;
pos_T *p;
int add;
@@ -170,7 +169,7 @@ static void changed_common(linenr_T lnum, colnr_T col, linenr_T lnume,
if (p->lnum != lnum) {
add = true;
} else {
cols = comp_textwidth(false);
int cols = comp_textwidth(false);
if (cols == 0) {
cols = 79;
}