summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-12-17 22:10:58 +0100
committerBram Moolenaar <Bram@vim.org>2019-12-17 22:10:58 +0100
commit91b65e49440e77222a65b6f868507453239f409b (patch)
tree4f01f1f4186e679cbf299ddaae53a70ceeab0417 /src/ops.c
parent6f345a1458df2db03fba7863492404e9dc8b817c (diff)
downloadvim-git-91b65e49440e77222a65b6f868507453239f409b.tar.gz
patch 8.2.0018: :join does not add white space where it shouldv8.2.0018
Problem: :join does not add white space where it should. (Zdenek Dohnal) Solution: Handle joining multiple lines propely.
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ops.c b/src/ops.c
index 2a625066c..72ffd56bc 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -2001,7 +2001,7 @@ do_join(
{
curr = skipwhite(curr);
if (*curr != NUL && *curr != ')'
- && currsize != 0 && endcurr1 != TAB
+ && sumsize != 0 && endcurr1 != TAB
&& (!has_format_option(FO_MBYTE_JOIN)
|| (mb_ptr2char(curr) < 0x100 && endcurr1 < 0x100))
&& (!has_format_option(FO_MBYTE_JOIN2)