Joining multiple lines changed behavior for empty line

29 views
Skip to first unread message

Zdenek Dohnal

unread,
Dec 16, 2019, 7:03:05 AM12/16/19
to vim_dev
Hi,

Vim no longer joins multiple lines the same way as it did when empty line is present:

Previous behavior:

1) File:
a
b
c

d
e
f

2) :%j

Actual result:

a b cd e f

Previous result:

a b c d e f

Version 8.2, patchlevel 12, ran with -u NONE -U NONE -N -i NONE .

Is it expected or a bug?

Christian Brabandt

unread,
Dec 16, 2019, 7:43:27 AM12/16/19
to vim_dev
It looks like this comes from 8.1.22930 and might be expected. However
for your specific case, this might be unintended.


Best,
Christian
--
Hier geht nicht's, aber das mit System.

Bram Moolenaar

unread,
Dec 17, 2019, 4:07:30 PM12/17/19
to vim...@googlegroups.com, Zdenek Dohnal
That is a bug. I'll make a fix.

--
GALAHAD turns back. We see from his POV the lovely ZOOT standing by him
smiling enchantingly and a number of equally delectable GIRLIES draped
around in the seductively poulticed room. They look at him smilingly and
wave.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Zdenek Dohnal

unread,
Dec 18, 2019, 4:09:02 AM12/18/19
to vim_dev
I tested the current patchlevel and it works as before, thank you for the fix!
Reply all
Reply to author
Forward
0 new messages