Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Trailing empty lines dropped from paste #7463

Closed
redmunds opened this issue Apr 9, 2014 · 14 comments
Closed

Trailing empty lines dropped from paste #7463

redmunds opened this issue Apr 9, 2014 · 14 comments

Comments

@redmunds
Copy link
Contributor

redmunds commented Apr 9, 2014

  1. Copy Multiple lines where last line is empty
  2. Paste

Results: last line is not pasted

According to git bisect this was introduced with "Update to final CodeMirror v4 (4.0.3)" commit (8696643).

@redmunds redmunds added this to the Release #38 milestone Apr 9, 2014
@njx njx self-assigned this Apr 9, 2014
@njx
Copy link
Contributor

njx commented Apr 9, 2014

Looking at it, should be able to bisect in the commits since 4.0.3 to see where it was fixed. (It was probably fixed in a commit from the 3.0 stream, I'm guessing - will have to see how easy it is to monkeypatch.)

@njx
Copy link
Contributor

njx commented Apr 9, 2014

Oh, that's odd - I can reproduce it in the latest master now. I could have sworn it worked when I just tried it. Anyway, I'll figure out where it broke and file a bug with Marijn.

@njx
Copy link
Contributor

njx commented Apr 9, 2014

Ah, I figured out my confusion - it only reproduces when the line is truly blank (but not if it has spaces on it), which makes sense.

@njx
Copy link
Contributor

njx commented Apr 9, 2014

Filed as codemirror/codemirror5#2452. It appears that the bug was caused (reintroduced) by codemirror/codemirror5@475b2be0, which removed a hack that fixed this bug (originally reported as codemirror/codemirror5#1474). That hack was removed because of the bug codemirror/codemirror5#2384 that we filed (about clicking the middle button on Linux adding a $). If this turns out to be complicated to fix, we could conceivably just reintroduce the hack in a monkeypatch, and live with that Linux bug for now, since it's probably lower priority.

@redmunds
Copy link
Contributor Author

redmunds commented Apr 9, 2014

@njx I think middle click issue is a much lower priority than this one.

@njx
Copy link
Contributor

njx commented Apr 9, 2014

Yup, agreed.

@RaymondLim
Copy link
Contributor

And also it is Linux only issue.

njx added a commit that referenced this issue Apr 9, 2014
@njx
Copy link
Contributor

njx commented Apr 9, 2014

PR up in #7465

redmunds added a commit that referenced this issue Apr 10, 2014
Add cherry-pick CM commit to address #7463
@redmunds
Copy link
Contributor Author

Confirmed. Closing.

@redmunds
Copy link
Contributor Author

Re-opening to track CodeMirror issue. Removing Sprint 38 Milestone. Setting Priority to Medium.

@redmunds redmunds reopened this Apr 11, 2014
@redmunds redmunds removed this from the Release #38 milestone Apr 11, 2014
@njx
Copy link
Contributor

njx commented Apr 11, 2014

@redmunds Did you mean to reopen #7216? (This bug was actually fixed - it's #7216 that was reintroduced.)

@redmunds
Copy link
Contributor Author

@njx I thought all we did was to move SHA back before that 1 commit, right? The next time we want to update Codemirror then won't this return?

@njx
Copy link
Contributor

njx commented Apr 11, 2014

No, we actually cherry-picked a real commit from CM that re-added the hack, so that commit is actually in the upstream repo as well.

@redmunds
Copy link
Contributor Author

Alrighty then. Re-Closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants