aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c2
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))