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)
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.
The text was updated successfully, but these errors were encountered: