Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bracketed Paste does not preserve newline characters #780

Closed
technologicalMayhem opened this issue Apr 13, 2023 · 2 comments
Closed

Bracketed Paste does not preserve newline characters #780

technologicalMayhem opened this issue Apr 13, 2023 · 2 comments

Comments

@technologicalMayhem
Copy link

Describe the bug
When using bracketed paste, pasting text that contains newline characters, the text is stripped of the newline characters. As far as I can tell, bracketed paste should preserve newlines.

To Reproduce
Steps to reproduce the behavior:

  1. Enable bracketed paste
  2. Run the application and paste text containing newlines
  3. Checking the pasted text for newline characters returns false

Expected behavior
The pasted text should preserve the newline characters.

OS

  • Arch Linux

Terminal/Console

  • Yakuake
  • Konsole
@sigmaSd
Copy link
Contributor

sigmaSd commented Apr 13, 2023

works for me (linux, wezterm), also helix been using it for a while and it works there as well (doesn't work at all on windows though)

to test git clone this repo, cargo r --example event-read, copy some multine code, paste it and it have \n
image

@technologicalMayhem
Copy link
Author

So I tried out a whole variety of different terminals and came to the conclusion that some just write \r instead of \n when pasting. I guess I could just convert \r to \n in that case and it should be fine (?).

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

No branches or pull requests

2 participants