diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-12-18 05:22:58 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-12-18 05:38:59 -0500 |
commit | 04ebfeb8818b7f5b3d0b174c18257f1afa0bc8fd (patch) | |
tree | fe267efddf75b1ceeadf981daa2f0eb89a22e271 /src/nvim/ops.c | |
parent | 74a547d340cbdf9ec60c498a9d064283cabcfb6f (diff) | |
download | rneovim-04ebfeb8818b7f5b3d0b174c18257f1afa0bc8fd.tar.gz rneovim-04ebfeb8818b7f5b3d0b174c18257f1afa0bc8fd.tar.bz2 rneovim-04ebfeb8818b7f5b3d0b174c18257f1afa0bc8fd.zip |
vim-patch:8.2.0018: :join does not add white space where it should
Problem: :join does not add white space where it should. (Zdenek Dohnal)
Solution: Handle joining multiple lines propely.
https://github.com/vim/vim/commit/91b65e49440e77222a65b6f868507453239f409b
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 294c65ca03..0ca16e2c25 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -3772,7 +3772,7 @@ int do_join(size_t count, curr = skipwhite(curr); if (*curr != NUL && *curr != ')' - && currsize != 0 + && sumsize != 0 && endcurr1 != TAB && (!has_format_option(FO_MBYTE_JOIN) || (utf_ptr2char(curr) < 0x100 && endcurr1 < 0x100)) |