Bug 1781873 - Joining multiple lines loses a space when one of the lines is empty
Summary: Joining multiple lines loses a space when one of the lines is empty
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: vim
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Leigh Griffin
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-10 19:01 UTC by Villy Kruse
Modified: 2020-07-14 11:30 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-07-14 11:30:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Villy Kruse 2019-12-10 19:01:20 UTC
Description of problem:

vim, and vi before that, would always insert a space between lines that are joined.
Lately vim joins lines without a space when empty lines are among the joined lines.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Create a file like this:
----------------------x8-----------------
b 
c
d

e
f
g
----------------------x8-----------------

Make sure no trailing spaces in this file.

2.  Join all lines using the command ":%j"


Actual results:

b c de f g

Notice "d" and "e" without a space in between.

Expected results:

b c d e f g

Additional info:

I am not sure when this issue started, but I would guess withing the past couple of months.

Comment 1 Villy Kruse 2019-12-12 07:32:32 UTC
I just got a chance to test with version vim-8.1.2267-1.fc31, and this version did work properly.

The vim-8.1.2352-1.fc31.x86_64 version does have the problem.

Comment 2 Zdenek Dohnal 2019-12-18 09:10:14 UTC
Fixed in patch 8.2.018.

Comment 3 Fedora Update System 2019-12-18 10:35:54 UTC
FEDORA-2019-36048ee993 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-36048ee993

Comment 4 Villy Kruse 2019-12-18 14:18:35 UTC
(In reply to Zdenek Dohnal from comment #2)
> Fixed in patch 8.2.018.

It is indeed.  Thanks a lot.

Comment 5 Fedora Update System 2019-12-19 01:10:06 UTC
vim-8.2.019-1.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-36048ee993

Comment 6 Fedora Update System 2019-12-20 02:42:59 UTC
vim-8.2.019-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.