question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Paste doesn't preserve newlines (when line endings are `\r\n`)

See original GitHub issue

After copying a line with yy, pp should insert the default register’s contents on a new line. Right now, it appends to the current line.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
qguvcommented, Jul 7, 2017

Confirmed fixed, thanks. Nice work!

0reactions
nosamicommented, Jul 7, 2017

@qguv Thanks for confirming. Each test is now ran twice - once with LF line endings, and then again with CRLF line endings, so hopefully this will be enough to catch this sort of issue in the future. Cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

windows - Preserve line endings
You can use the -b option for sed to have it treat the file as binary. This will fix the problem with cygwin's...
Read more >
Keep line endings on paste (no LF to CRLF or CRLF to LF)?
If I copy/paste a snippet from a unix (LF) file to a windows one (CRLF), the line-endings are automatically converted to CRLF and...
Read more >
How to add a newline to the end of a file?
The code works because sed by default appends a newline to its output if it is not already there. The code "$a\" just...
Read more >
How are \n and \r handled differently on Linux and Windows?
I think \n moves the needle down, and \r moves the needle to the beginning of a line (left align)? I'm not sure,...
Read more >
Configure line separators | IntelliJ IDEA Documentation
With IntelliJ IDEA, you can set up line separators (line endings) for newly created files, and change line separator style for existing ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found