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

fish_clipboard_copy includes a newline #6927

Closed
ariasuni opened this issue Apr 21, 2020 · 4 comments
Closed

fish_clipboard_copy includes a newline #6927

ariasuni opened this issue Apr 21, 2020 · 4 comments
Labels
bug Something that's not working as intended
Milestone

Comments

@ariasuni
Copy link

Since commit 2009977, function fish_clipboard_copy adds a \n at the end of the copied text.

I don’t see a good reason for this behavior, and I find it annoying.

@zanchey zanchey added the bug Something that's not working as intended label Apr 21, 2020
@zanchey zanchey added this to the fish-future milestone Apr 21, 2020
@zanchey
Copy link
Member

zanchey commented Apr 21, 2020

@faho any thoughts?

@faho faho closed this as completed in 6ebbe5a Apr 21, 2020
@zanchey
Copy link
Member

zanchey commented Apr 21, 2020

Yes, apparently :-)

@zanchey
Copy link
Member

zanchey commented Apr 25, 2020

Took this for 3.1.1 as d9cf1be.

zanchey pushed a commit that referenced this issue Apr 25, 2020
When this switched over from directly piping commandline to storing
its output and using printf, I inadvertently always added a trailing
newline. That's probably annoying.

Note that this will now always *remove* a trailing newline (because
the command substitution does). That will barely make a
difference (because trailing newlines are quite unusual in the
commandline) and will probably feel better than keeping it - we could
even make a point of removing trailing whitespace in general.

Fixes #6927

(cherry picked from commit 6ebbe5a)
@ariasuni
Copy link
Author

Thanks a lot :)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something that's not working as intended
Projects
None yet
Development

No branches or pull requests

2 participants