diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-22 21:02:42 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-23 08:57:16 -0400 |
commit | 2894649c2ea89642705cfe3b1e7912335a13bad5 (patch) | |
tree | b389247bd630cff0433ae29e63cac159bdfc03db /src/nvim/change.c | |
parent | 9280a69a6d1828972cb8a0f6b7f81e0a5e73c886 (diff) | |
download | rneovim-2894649c2ea89642705cfe3b1e7912335a13bad5.tar.gz rneovim-2894649c2ea89642705cfe3b1e7912335a13bad5.tar.bz2 rneovim-2894649c2ea89642705cfe3b1e7912335a13bad5.zip |
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)
https://github.com/vim/vim/commit/e52702f00322c8a8861efd0bd6a3775e685e5685
Diffstat (limited to 'src/nvim/change.c')
-rw-r--r-- | src/nvim/change.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c index 71614363d2..be52750c44 100644 --- a/src/nvim/change.c +++ b/src/nvim/change.c @@ -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; } |