forked from aniani/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.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user