-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Trailing empty lines dropped from paste #7463
Comments
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.) |
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. |
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. |
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. |
@njx I think middle click issue is a much lower priority than this one. |
Yup, agreed. |
And also it is Linux only issue. |
PR up in #7465 |
Add cherry-pick CM commit to address #7463
Confirmed. Closing. |
Re-opening to track CodeMirror issue. Removing Sprint 38 Milestone. Setting Priority to Medium. |
@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? |
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. |
Alrighty then. Re-Closing. |
Results: last line is not pasted
According to
git bisect
this was introduced with "Update to final CodeMirror v4 (4.0.3)" commit (8696643).The text was updated successfully, but these errors were encountered: